97 if ($this->cache->isActive()) {
99 $cached_value = $this->cache->get(
$key);
100 if (is_array($cached_value)) {
101 return $cached_value;
104 if ($cached_value instanceof stdClass) {
105 return [$cached_value];
111 if ($this->cache->isActive()) {
114 $this->cache->set(
$key,
$results, self::CACHE_TTL_SECONDS);
130 if ($this->cache->isActive()) {
131 $key = $ar->getConnectorContainerName() .
"_" . $ar->getPrimaryFieldValue();
132 $this->cache->delete(
$key);
164 if ($this->cache->isActive()) {
168 $this->cache->set(
$key, $value, self::CACHE_TTL_SECONDS);
@noinspection NullPointerExceptionInspection
getConnectorContainerName()
@description Return the Name of your Connector Table
readSet(ActiveRecordList $arl)
quote($value, string $type)
arConnector $arConnectorDB
storeActiveRecordInCache(ActiveRecord $ar)
Stores an active record into the Cache.
updateDatabase(ActiveRecord $ar)
installDatabase(ActiveRecord $ar, array $fields)
checkTableExists(ActiveRecord $ar)
checkConnection(ActiveRecord $ar)
truncateDatabase(ActiveRecord $ar)
renameField(ActiveRecord $ar, string $old_name, string $new_name)
resetDatabase(ActiveRecord $ar)
checkFieldExists(ActiveRecord $ar, string $field_name)
removeField(ActiveRecord $ar, string $field_name)
updateIndices(ActiveRecord $ar)
affectedRows(ActiveRecordList $arl)
__construct(arConnector $arConnectorDB)
ilGSStorageCache constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
nextID(ActiveRecord $activeRecord)
installDatabase(ActiveRecord $activeRecord, array $fields)
renameField(ActiveRecord $activeRecord, string $old_name, string $new_name)
removeField(ActiveRecord $activeRecord, string $field_name)
quote($value, string $type)
update(ActiveRecord $activeRecord)
affectedRows(ActiveRecordList $activeRecordList)
checkTableExists(ActiveRecord $activeRecord)
truncateDatabase(ActiveRecord $activeRecord)
checkConnection(ActiveRecord $activeRecord)
create(ActiveRecord $activeRecord)
checkFieldExists(ActiveRecord $activeRecord, string $field_name)
resetDatabase(ActiveRecord $activeRecord)
updateIndices(ActiveRecord $activeRecord)
updateDatabase(ActiveRecord $activeRecord)
read(ActiveRecord $activeRecord)
delete(ActiveRecord $activeRecord)
readSet(ActiveRecordList $activeRecordList)
static getInstance(?string $component)