__construct |
( |
|
$path = '' | ) |
|
without the 'dir' argument the cache path is taken from $CACHING_FILECACHE_PATH or is set to $TMP_PATH/studip_cache
- Parameters
-
- Returns
- void
- Exceptions
-
exception | if the directory does not exist or could not be created |
Expire all items from the cache.
Implements StudipCache.
get path to cache directory
- Returns
- string
static getDisplayName |
( |
| ) |
|
|
static |
- Returns
- string A translateable display name for this cache class.
Implements StudipSystemCache.
purge |
( |
|
$be_quiet = true | ) |
|
purges expired entries from the cache directory
- Parameters
-
bool | echo messages if set to false |
- Returns
- int the number of deleted files
write |
( |
|
$arg, |
|
|
|
$content, |
|
|
|
$expire = self::DEFAULT_EXPIRATION |
|
) |
| |
store data as cache item in filesystem
- See Also
- StudipCache::write()
- Parameters
-
string | $arg | a cache key |
mixed | $content | data to store |
int | $expire | expiry time in seconds, default 12h |
- Returns
- int|bool the number of bytes that were written to the file, or false on failure
Implements StudipCache.
The documentation for this class was generated from the following file: