ILIAS
release_8 Revision v8.19
|
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 28 of file class.ilCache.php.
ilCache::__construct | ( | string | $a_component, |
string | $a_cache_name, | ||
bool | $a_use_long_content = false |
||
) |
Definition at line 37 of file class.ilCache.php.
References setComponent(), setName(), and setUseLongContent().
ilCache::deleteAllEntries | ( | ) |
Definition at line 217 of file class.ilCache.php.
References $ilDB, 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 187 of file class.ilCache.php.
References $ilDB, getComponent(), getName(), and getUseLongContent().
Referenced by ilCalendarCache\deleteUserEntries().
ilCache::deleteEntry | ( | string | $a_id | ) |
Definition at line 231 of file class.ilCache.php.
References $ilDB, getComponent(), getName(), and getUseLongContent().
|
protected |
Definition at line 61 of file class.ilCache.php.
References $component.
Referenced by deleteAllEntries(), deleteByAdditionalKeys(), deleteEntry(), readEntry(), and storeEntry().
|
final |
Definition at line 99 of file class.ilCache.php.
References $entry, and readEntry().
ilCache::getExpiresAfter | ( | ) |
Definition at line 94 of file class.ilCache.php.
References $expires_after.
Referenced by storeEntry().
ilCache::getLastAccessStatus | ( | ) |
|
protected |
Definition at line 71 of file class.ilCache.php.
References $name.
Referenced by deleteAllEntries(), deleteByAdditionalKeys(), deleteEntry(), readEntry(), and storeEntry().
|
protected |
Definition at line 81 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 51 of file class.ilCache.php.
References ilMemberViewSettings\getInstance().
|
protected |
Definition at line 109 of file class.ilCache.php.
References $ilDB, $query, getComponent(), getName(), getUseLongContent(), and ILIAS_VERSION_NUMERIC.
Referenced by getEntry().
ilCache::setComponent | ( | string | $a_val | ) |
Definition at line 56 of file class.ilCache.php.
Referenced by __construct().
ilCache::setExpiresAfter | ( | int | $a_val | ) |
Set expires after x seconds.
Definition at line 89 of file class.ilCache.php.
Referenced by ilCalendarCache\__construct(), ilExampleCache\__construct(), ilNewsCache\__construct(), ilListItemAccessCache\__construct(), and ilCalendarCache\storeUnlimitedEntry().
|
protected |
Definition at line 66 of file class.ilCache.php.
Referenced by __construct().
|
protected |
Definition at line 76 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 139 of file class.ilCache.php.
References $ilDB, $type, getComponent(), getExpiresAfter(), getName(), getUseLongContent(), and ILIAS_VERSION_NUMERIC.
|
protected |
Definition at line 35 of file class.ilCache.php.
Referenced by getComponent().
|
protected |
Definition at line 30 of file class.ilCache.php.
Referenced by getEntry().
|
protected |
Definition at line 32 of file class.ilCache.php.
Referenced by getExpiresAfter().
|
protected |
Definition at line 31 of file class.ilCache.php.
Referenced by getLastAccessStatus().
|
protected |
Definition at line 34 of file class.ilCache.php.
Referenced by getName().
|
protected |
Definition at line 33 of file class.ilCache.php.
Referenced by getUseLongContent().