ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilExampleCache Class Reference

Example cache class. More...

+ Inheritance diagram for ilExampleCache:
+ Collaboration diagram for ilExampleCache:

Public Member Functions

 __construct ()
 Constructor.
- Public Member Functions inherited from ilCache
 __construct ($a_component, $a_cache_name, $a_use_long_content=false)
 Constructor.
 isDisabled ()
 Check if cache is disabled Forced if member view is active.
 setComponent ($a_val)
 Set component.
 setExpiresAfter ($a_val)
 Set expires after x seconds.
 getExpiresAfter ()
 Get expires after x seconds.
 getEntry ($a_id)
 Get entry.
 getLastAccessStatus ()
 Last access.
 storeEntry ($a_id, $a_value, $a_int_key1=null, $a_int_key2=null, $a_text_key1=null, $a_text_key2=null)
 Store entry.
 deleteByAdditionalKeys ($a_int_key1=null, $a_int_key2=null, $a_text_key1=null, $a_text_key2=null)
 Delete by additional keys.
 deleteAllEntries ()
 Delete all entries of cache.
 deleteEntry ($a_id)
 Delete entry.

Additional Inherited Members

- Protected Member Functions inherited from ilCache
 getComponent ()
 Get component.
 setName ($a_val)
 Set name.
 getName ()
 Get name.
 setUseLongContent ($a_val)
 Set use long content.
 getUseLongContent ()
 Get use long content.
 readEntry ($a_id)
 Read entry.

Detailed Description

Example cache class.

This class shoul fit two purposes

  • As an example of the abstract ilCache class
  • As a class that is used by unit tests for testing the ilCache class
Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 15 of file class.ilExampleCache.php.

Constructor & Destructor Documentation

ilExampleCache::__construct ( )

Constructor.

Parameters
@return

Definition at line 23 of file class.ilExampleCache.php.

References ilCache\setExpiresAfter().

{
parent::__construct("ServicesCache", "Example", false);
$this->setExpiresAfter(5); // only five seconds to make a hit
// usually you would this value from some setting
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: