◆ __construct()
__construct |
( |
string |
$path = '' | ) |
|
without the 'dir' argument the cache path is taken from $CACHING_FILECACHE_PATH or is set to $TMP_PATH/studip_cache
- Parameters
-
string | $path | the path to use |
- Exceptions
-
Exception | if the directory does not exist or could not be created |
◆ expire()
expire cache item
- Parameters
-
- Returns
- void
- Exceptions
-
- See also
- Cache::expire()
◆ flush()
Expire all items from the cache.
◆ getCacheDir()
get path to cache directory
- Returns
- string
◆ getConfig()
Return the Vue component name and props that handle configuration.
- Returns
- array
◆ getDisplayName()
static getDisplayName |
( |
| ) |
|
|
static |
- Returns
- string A translateable display name for this cache class.
◆ getItem()
◆ getStats()
Return statistics.
- Returns
- array|array[]
◆ hasItem()
◆ purge()
purge |
( |
bool |
$be_quiet = true | ) |
|
purges expired entries from the cache directory
- Parameters
-
bool | $be_quiet | echo messages if set to false |
- Returns
- int the number of deleted files
◆ save()
save |
( |
CacheItemInterface |
$item | ) |
|
The documentation for this class was generated from the following file: