This class is responsible for storing values with PhpFastCache.
More...
|
| __construct ($root, $postfix="", $cacheParams=[]) |
| Initializes the cache-provider. More...
|
|
| exists ($key) |
| Check if annotation-data for the key has been stored. More...
|
|
| store ($key, $code, $tag=null, $php=true) |
|
| fetch ($key) |
| Fetches data stored for the given key. More...
|
|
| file_get_contents ($key) |
| return data stored for the given key. More...
|
|
| getTimestamp ($key) |
| Returns the timestamp of the last cache update for the given key. More...
|
|
| remove ($key) |
|
| clear () |
|
| getCacheFiles ($type) |
|
| clearCache ($type) |
|
| getCacheInfo () |
|
| getEntryKey ($key) |
|
| __construct ($root, $postfix="") |
|
| exists ($key) |
| Check if annotation-data for the key has been stored. More...
|
|
| expired ($key, $duration) |
|
| store ($key, $code, $tag=null, $php=true) |
| Caches the given data with the given key. More...
|
|
| getRoot () |
|
| fetch ($key) |
| Fetches data stored for the given key. More...
|
|
| file_get_contents ($key) |
| return data stored for the given key. More...
|
|
| getTimestamp ($key) |
| Returns the timestamp of the last cache update for the given key. More...
|
|
| remove ($key) |
|
| clear () |
| Clears all cache entries. More...
|
|
| getCacheFiles ($type) |
|
| clearCache ($type) |
|
| getCacheInfo () |
|
| getEntryKey ($key) |
|
This class is responsible for storing values with PhpFastCache.
Definition at line 11 of file PhpFastCacheDriver.php.
◆ __construct()
__construct |
( |
|
$root, |
|
|
|
$postfix = "" , |
|
|
|
$cacheParams = [] |
|
) |
| |
◆ clear()
◆ clearCache()
◆ exists()
Check if annotation-data for the key has been stored.
- Parameters
-
- Returns
- boolean true if data with the given key has been stored; otherwise false
Definition at line 32 of file PhpFastCacheDriver.php.
◆ fetch()
Fetches data stored for the given key.
- Parameters
-
- Returns
- mixed the cached data
Definition at line 64 of file PhpFastCacheDriver.php.
◆ file_get_contents()
file_get_contents |
( |
|
$key | ) |
|
return data stored for the given key.
- Parameters
-
- Returns
- mixed the cached data
Definition at line 74 of file PhpFastCacheDriver.php.
◆ getCacheEntries()
◆ getCacheFiles()
◆ getCacheInfo()
◆ getEntryKey()
◆ getRealKey()
◆ getTimestamp()
Returns the timestamp of the last cache update for the given key.
- Parameters
-
- Returns
- int unix timestamp
Definition at line 84 of file PhpFastCacheDriver.php.
◆ remove()
◆ store()
store |
( |
|
$key, |
|
|
|
$code, |
|
|
|
$tag = null , |
|
|
|
$php = true |
|
) |
| |
◆ storeContent()
storeContent |
( |
|
$key, |
|
|
|
$content, |
|
|
|
$tag |
|
) |
| |
|
protected |
Caches the given data with the given key.
- Parameters
-
string | $key | cache key |
string | $content | the source-code to be cached |
string | $tag | |
Definition at line 46 of file PhpFastCacheDriver.php.
◆ $cacheInstance
The documentation for this class was generated from the following file: