| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
Cache class. More...
 Inheritance diagram for ilCache:
 Inheritance diagram for ilCache: Collaboration diagram for ilCache:
 Collaboration diagram for ilCache:| Public Member Functions | |
| __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. | |
| Protected Member Functions | |
| 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. | |
Cache class.
The cache class stores key/value pairs. Since the primary key is only one text field. It's sometimes necessary to combine parts like "100:200" for user id 100 and ref_id 200.
However sometimes records should be deleted by pars of the main key. For this reason up to two optional additional optional integer and two additional optional text fields can be stored. A derived class may delete records based on the content of this additional keys.
Definition at line 18 of file class.ilCache.php.
| ilCache::__construct | ( | $a_component, | |
| $a_cache_name, | |||
| $a_use_long_content = false | |||
| ) | 
Constructor.
| @return | 
Definition at line 26 of file class.ilCache.php.
References setComponent(), setName(), and setUseLongContent().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCache::deleteAllEntries | ( | ) | 
Delete all entries of cache.
Definition at line 271 of file class.ilCache.php.
References $ilDB, getComponent(), getName(), and getUseLongContent().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCache::deleteByAdditionalKeys | ( | $a_int_key1 = null, | |
| $a_int_key2 = null, | |||
| $a_text_key1 = null, | |||
| $a_text_key2 = null | |||
| ) | 
Delete by additional keys.
Definition at line 239 of file class.ilCache.php.
References $ilDB, getComponent(), getName(), and getUseLongContent().
Referenced by ilListItemAccessCache\deleteByRefId().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCache::deleteEntry | ( | $a_id | ) | 
Delete entry.
| string | key | 
Definition at line 290 of file class.ilCache.php.
References $ilDB, getComponent(), getName(), and getUseLongContent().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Get component.
Definition at line 59 of file class.ilCache.php.
Referenced by deleteAllEntries(), deleteByAdditionalKeys(), deleteEntry(), readEntry(), and storeEntry().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | final | 
Get entry.
| string | entry id | 
Definition at line 130 of file class.ilCache.php.
References readEntry().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCache::getExpiresAfter | ( | ) | 
Get expires after x seconds.
Definition at line 119 of file class.ilCache.php.
Referenced by storeEntry().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCache::getLastAccessStatus | ( | ) | 
| 
 | protected | 
Get name.
Definition at line 79 of file class.ilCache.php.
Referenced by deleteAllEntries(), deleteByAdditionalKeys(), deleteEntry(), readEntry(), and storeEntry().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Get use long content.
Definition at line 99 of file class.ilCache.php.
Referenced by deleteAllEntries(), deleteByAdditionalKeys(), deleteEntry(), readEntry(), and storeEntry().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCache::isDisabled | ( | ) | 
Check if cache is disabled Forced if member view is active.
Reimplemented in ilNewsCache, and ilListItemAccessCache.
Definition at line 38 of file class.ilCache.php.
References ilMemberViewSettings\getInstance().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Read entry.
| @return | 
Reimplemented in ilNewsCache, ilListItemAccessCache, and ilCalendarCache.
Definition at line 146 of file class.ilCache.php.
References $ilDB, $query, getComponent(), getName(), getUseLongContent(), and ILIAS_VERSION_NUMERIC.
Referenced by getEntry().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCache::setComponent | ( | $a_val | ) | 
Set component.
| string | component | 
Definition at line 49 of file class.ilCache.php.
Referenced by __construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCache::setExpiresAfter | ( | $a_val | ) | 
Set expires after x seconds.
| int | expires after x seconds | 
Definition at line 109 of file class.ilCache.php.
Referenced by ilCalendarCache\__construct(), ilListItemAccessCache\__construct(), ilNewsCache\__construct(), ilExampleCache\__construct(), and ilCalendarCache\storeUnlimitedEntry().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Set name.
| string | name | 
Definition at line 69 of file class.ilCache.php.
Referenced by __construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Set use long content.
| boolean | use long content | 
Definition at line 89 of file class.ilCache.php.
Referenced by __construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCache::storeEntry | ( | $a_id, | |
| $a_value, | |||
| $a_int_key1 = null, | |||
| $a_int_key2 = null, | |||
| $a_text_key1 = null, | |||
| $a_text_key2 = null | |||
| ) | 
Store entry.
| string | key | 
| string | value | 
| int | additional optional integer key | 
| int | additional optional integer key | 
| string | additional optional text key | 
| string | additional optional text key | 
Reimplemented in ilCalendarCache.
Definition at line 192 of file class.ilCache.php.
References $ilDB, getComponent(), getExpiresAfter(), getName(), getUseLongContent(), and ILIAS_VERSION_NUMERIC.
 Here is the call graph for this function:
 Here is the call graph for this function: