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);
updateIndices(ActiveRecord $activeRecord)
create(ActiveRecord $activeRecord)
installDatabase(ActiveRecord $activeRecord, array $fields)
renameField(ActiveRecord $activeRecord, string $old_name, string $new_name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
updateIndices(ActiveRecord $ar)
checkConnection(ActiveRecord $ar)
__construct(arConnector $arConnectorDB)
ilGSStorageCache constructor.
truncateDatabase(ActiveRecord $activeRecord)
quote($value, string $type)
NullPointerExceptionInspection
arConnector $arConnectorDB
resetDatabase(ActiveRecord $ar)
updateDatabase(ActiveRecord $ar)
renameField(ActiveRecord $ar, string $old_name, string $new_name)
resetDatabase(ActiveRecord $activeRecord)
affectedRows(ActiveRecordList $arl)
updateDatabase(ActiveRecord $activeRecord)
readSet(ActiveRecordList $activeRecordList)
removeField(ActiveRecord $ar, string $field_name)
installDatabase(ActiveRecord $ar, array $fields)
update(ActiveRecord $activeRecord)
checkFieldExists(ActiveRecord $activeRecord, string $field_name)
readSet(ActiveRecordList $arl)
getConnectorContainerName()
Return the Name of your Connector Table
nextID(ActiveRecord $activeRecord)
affectedRows(ActiveRecordList $activeRecordList)
delete(ActiveRecord $activeRecord)
checkTableExists(ActiveRecord $activeRecord)
checkFieldExists(ActiveRecord $ar, string $field_name)
quote($value, string $type)
removeField(ActiveRecord $activeRecord, string $field_name)
storeActiveRecordInCache(ActiveRecord $ar)
Stores an active record into the Cache.
static getInstance(?string $component)
checkTableExists(ActiveRecord $ar)
read(ActiveRecord $activeRecord)
checkConnection(ActiveRecord $activeRecord)
truncateDatabase(ActiveRecord $ar)