ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilExampleCache Class Reference

Example cache class. More...

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

Public Member Functions

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

Additional Inherited Members

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

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

◆ __construct()

ilExampleCache::__construct ( )

Constructor.

Parameters

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

References ilCache\setExpiresAfter().

24  {
25  parent::__construct("ServicesCache", "Example", false);
26  $this->setExpiresAfter(5); // only five seconds to make a hit
27  // usually you would this value from some setting
28  }
setExpiresAfter($a_val)
Set expires after x seconds.
+ Here is the call graph for this function:

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