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);
 
getConnectorContainerName()
An exception for terminatinating execution or to throw for unit testing.
readSet(ActiveRecordList $arl)
removeField(ActiveRecord $ar, $field_name)
storeActiveRecordInCache(ActiveRecord $ar)
Stores an active record into the Cache.
updateDatabase(ActiveRecord $ar)
installDatabase(ActiveRecord $ar, $fields)
checkTableExists(ActiveRecord $ar)
renameField(ActiveRecord $ar, $old_name, $new_name)
checkConnection(ActiveRecord $ar)
truncateDatabase(ActiveRecord $ar)
checkFieldExists(ActiveRecord $ar, $field_name)
__construct(arConnector $arConnectorDB, int $ttl=self::CACHE_TTL_SECONDS)
ilGSStorageCache constructor.
resetDatabase(ActiveRecord $ar)
updateIndices(ActiveRecord $ar)
affectedRows(ActiveRecordList $arl)
updateIndices(ActiveRecord $ar)
renameField(ActiveRecord $ar, $old_name, $new_name)
installDatabase(ActiveRecord $ar, $fields)
checkTableExists(ActiveRecord $ar)
checkConnection(ActiveRecord $ar)
resetDatabase(ActiveRecord $ar)
affectedRows(ActiveRecordList $arl)
removeField(ActiveRecord $ar, $field_name)
updateDatabase(ActiveRecord $ar)
checkFieldExists(ActiveRecord $ar, $field_name)
readSet(ActiveRecordList $arl)
truncateDatabase(ActiveRecord $ar)
static getInstance($component)