The php memory implementation of the StudipCache interface.
- 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 5.0
◆ 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 |
( |
|
$name, |
|
|
|
$content, |
|
|
|
$expires = self::DEFAULT_EXPIRATION |
|
) |
| |
Store data at the server.
- Parameters
-
string | the item's key. |
mixed | the item's content (will be serialized if necessary). |
int | the item's expiry time in seconds. Defaults to 12h. |
- Returns
- mixed returns TRUE on success or FALSE on failure.
Implements StudipCache.
◆ $memory_cache
The documentation for this class was generated from the following file: