Proxies a StudipCache and stores the expire operation in the database. These operations are lateron applied to the cache they should have been applied to in the beginning.
- Author
- Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL2 or any later version
- Since
- Stud.IP 3.3
◆ __construct()
- Parameters
-
StudipCache | $cache | The actual cache object |
mixed | $proxy_these | List of operations to proxy (should be an array but a space seperated string is also valid) |
◆ expire()
Expires just a single key.
- Parameters
-
Implements StudipCache.
◆ flush()
Expire all items from the cache.
Implements StudipCache.
◆ getConfig()
Return the Vue component name and props that handle configuration. The associative array is of the form [ 'component' => <Vue component="" name>="">, 'props' => <Properties for="" component>=""> ]
- Returns
- array
Implements StudipCache.
◆ getDisplayName()
static getDisplayName |
( |
| ) |
|
|
static |
- Returns
- string A translateable display name for this cache class.
Implements StudipCache.
◆ getStats()
Get some statistics from cache, like number of entries, hit rate or whatever the underlying cache provides. Results are returned in form of an array like "[ [ 'name' => <displayable name>=""> 'value' =>
] ]"
- Returns
- array
Implements StudipCache.
◆ read()
Reads just a single key from the cache.
- Parameters
-
- Returns
- mixed The corresponding value
Implements StudipCache.
◆ write()
write |
( |
|
$key, |
|
|
|
$content, |
|
|
|
$expires = self::DEFAULT_EXPIRATION |
|
) |
| |
Store data at the server.
- Parameters
-
string | $key | The item's key |
string | $content | The item's conten |
int | $expires | The item's expiry time in seconds, defaults to 12h |
- Returns
- bool Returns TRUE on success or FALSE on failure
Implements StudipCache.
◆ $actual_cache
◆ $proxy_these
The documentation for this class was generated from the following file: