ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (string $a_component, string $a_cache_name, bool $a_use_long_content=false) | |
isDisabled () | |
Check if cache is disabled Forced if member view is active. More... | |
setComponent (string $a_val) | |
setExpiresAfter (int $a_val) | |
Set expires after x seconds. More... | |
getExpiresAfter () | |
getEntry (string $a_id) | |
getLastAccessStatus () | |
storeEntry (string $a_id, string $a_value, ?int $a_int_key1=null, ?int $a_int_key2=null, ?string $a_text_key1=null, ?string $a_text_key2=null) | |
deleteByAdditionalKeys (?int $a_int_key1=null, ?int $a_int_key2=null, ?string $a_text_key1=null, ?string $a_text_key2=null) | |
deleteAllEntries () | |
deleteEntry (string $a_id) | |
Protected Member Functions | |
getComponent () | |
setName (string $a_val) | |
getName () | |
setUseLongContent (bool $a_val) | |
getUseLongContent () | |
readEntry (string $a_id) | |
Protected Attributes | |
string | $entry |
string | $last_access |
int | $expires_after |
bool | $use_long_content |
string | $name |
string | $component |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 31 of file class.ilCache.php.
ilCache::__construct | ( | string | $a_component, |
string | $a_cache_name, | ||
bool | $a_use_long_content = false |
||
) |
Definition at line 40 of file class.ilCache.php.
References setComponent(), setName(), and setUseLongContent().
ilCache::deleteAllEntries | ( | ) |
Definition at line 220 of file class.ilCache.php.
References $ilDB, $q, getComponent(), getName(), and getUseLongContent().
ilCache::deleteByAdditionalKeys | ( | ?int | $a_int_key1 = null , |
?int | $a_int_key2 = null , |
||
?string | $a_text_key1 = null , |
||
?string | $a_text_key2 = null |
||
) |
Definition at line 190 of file class.ilCache.php.
References $ilDB, $q, getComponent(), getName(), and getUseLongContent().
Referenced by ilCalendarCache\deleteUserEntries().
ilCache::deleteEntry | ( | string | $a_id | ) |
Definition at line 234 of file class.ilCache.php.
References $ilDB, getComponent(), getName(), and getUseLongContent().
|
protected |
Definition at line 64 of file class.ilCache.php.
References $component.
Referenced by deleteAllEntries(), deleteByAdditionalKeys(), deleteEntry(), readEntry(), and storeEntry().
|
final |
Definition at line 102 of file class.ilCache.php.
References $entry, null, and readEntry().
ilCache::getExpiresAfter | ( | ) |
Definition at line 97 of file class.ilCache.php.
References $expires_after.
Referenced by storeEntry().
ilCache::getLastAccessStatus | ( | ) |
|
protected |
Definition at line 74 of file class.ilCache.php.
References $name.
Referenced by deleteAllEntries(), deleteByAdditionalKeys(), deleteEntry(), readEntry(), and storeEntry().
|
protected |
Definition at line 84 of file class.ilCache.php.
References $use_long_content.
Referenced by deleteAllEntries(), deleteByAdditionalKeys(), deleteEntry(), readEntry(), and storeEntry().
ilCache::isDisabled | ( | ) |
Check if cache is disabled Forced if member view is active.
Definition at line 54 of file class.ilCache.php.
References ilMemberViewSettings\getInstance().
|
protected |
Definition at line 112 of file class.ilCache.php.
References $ilDB, getComponent(), getName(), getUseLongContent(), and ILIAS_VERSION_NUMERIC.
Referenced by getEntry().
ilCache::setComponent | ( | string | $a_val | ) |
Definition at line 59 of file class.ilCache.php.
Referenced by __construct().
ilCache::setExpiresAfter | ( | int | $a_val | ) |
Set expires after x seconds.
Definition at line 92 of file class.ilCache.php.
Referenced by ilExampleCache\__construct(), ilNewsCache\__construct(), ilCalendarCache\__construct(), ilListItemAccessCache\__construct(), and ilCalendarCache\storeUnlimitedEntry().
|
protected |
Definition at line 69 of file class.ilCache.php.
Referenced by __construct().
|
protected |
Definition at line 79 of file class.ilCache.php.
Referenced by __construct().
ilCache::storeEntry | ( | string | $a_id, |
string | $a_value, | ||
?int | $a_int_key1 = null , |
||
?int | $a_int_key2 = null , |
||
?string | $a_text_key1 = null , |
||
?string | $a_text_key2 = null |
||
) |
Definition at line 142 of file class.ilCache.php.
References $ilDB, getComponent(), getExpiresAfter(), getName(), getUseLongContent(), and ILIAS_VERSION_NUMERIC.
|
protected |
Definition at line 38 of file class.ilCache.php.
Referenced by getComponent().
|
protected |
Definition at line 33 of file class.ilCache.php.
Referenced by getEntry().
|
protected |
Definition at line 35 of file class.ilCache.php.
Referenced by getExpiresAfter().
|
protected |
Definition at line 34 of file class.ilCache.php.
Referenced by getLastAccessStatus().
|
protected |
Definition at line 37 of file class.ilCache.php.
Referenced by getName().
|
protected |
Definition at line 36 of file class.ilCache.php.
Referenced by getUseLongContent().