177 if ($this->cache->isActive()) {
179 $cached_value = $this->cache->get(
$key);
180 if (is_array($cached_value)) {
181 return $cached_value;
184 if ($cached_value instanceof
stdClass) {
185 return [$cached_value];
191 if ($this->cache->isActive()) {
194 $this->cache->set(
$key,
$results, self::CACHE_TTL_SECONDS);
222 if ($this->cache->isActive()) {
223 $key = $ar->getConnectorContainerName() .
"_" . $ar->getPrimaryFieldValue();
224 $this->cache->delete(
$key);
281 if ($this->cache->isActive()) {
285 $this->cache->set(
$key, $value, self::CACHE_TTL_SECONDS);
__construct(arConnector $arConnectorDB, int $ttl=self::CACHE_TTL_SECONDS)
ilGSStorageCache constructor.
renameField(ActiveRecord $ar, $old_name, $new_name)
installDatabase(ActiveRecord $ar, $fields)
updateIndices(ActiveRecord $ar)
checkConnection(ActiveRecord $ar)
readSet(ActiveRecordList $arl)
static getInstance($component)
updateIndices(ActiveRecord $ar)
updateDatabase(ActiveRecord $ar)
resetDatabase(ActiveRecord $ar)
updateDatabase(ActiveRecord $ar)
resetDatabase(ActiveRecord $ar)
checkConnection(ActiveRecord $ar)
removeField(ActiveRecord $ar, $field_name)
affectedRows(ActiveRecordList $arl)
truncateDatabase(ActiveRecord $ar)
checkFieldExists(ActiveRecord $ar, $field_name)
readSet(ActiveRecordList $arl)
getConnectorContainerName()
renameField(ActiveRecord $ar, $old_name, $new_name)
affectedRows(ActiveRecordList $arl)
checkTableExists(ActiveRecord $ar)
storeActiveRecordInCache(ActiveRecord $ar)
Stores an active record into the Cache.
removeField(ActiveRecord $ar, $field_name)
checkTableExists(ActiveRecord $ar)
checkFieldExists(ActiveRecord $ar, $field_name)
truncateDatabase(ActiveRecord $ar)
installDatabase(ActiveRecord $ar, $fields)