This class is responsible for storing Arrays in PHP files.
More...
|
| _getPath ($key) |
| Maps a cache-key to the absolute path of a PHP file. More...
|
|
This class is responsible for storing Arrays in PHP files.
Definition at line 13 of file ArrayCache.php.
◆ __construct()
__construct |
( |
|
$root, |
|
|
|
$postfix = "" , |
|
|
|
$cacheParams = [] |
|
) |
| |
Initializes the file cache-provider.
- Parameters
-
string | $root | absolute path to the root-folder where cache-files will be stored |
string | $postfix | Termination of file names |
array | $cacheParams | defaults to ["fileMode"=>"0777"] |
Definition at line 26 of file ArrayCache.php.
◆ _getPath()
Maps a cache-key to the absolute path of a PHP file.
- Parameters
-
- Returns
- string absolute path of the PHP file
Definition at line 92 of file ArrayCache.php.
◆ 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 38 of file ArrayCache.php.
◆ fetch()
Fetches data stored for the given key.
- Parameters
-
- Returns
- mixed the cached data
Definition at line 63 of file ArrayCache.php.
◆ file_get_contents()
file_get_contents |
( |
|
$key | ) |
|
return data stored for the given key.
- Parameters
-
- Returns
- mixed the cached data
Definition at line 72 of file ArrayCache.php.
◆ getCacheFiles()
◆ getCacheInfo()
◆ getEntryKey()
◆ getTimestamp()
Returns the timestamp of the last cache update for the given key.
- Parameters
-
- Returns
- int unix timestamp
Definition at line 82 of file ArrayCache.php.
◆ remove()
◆ 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 |
- Exceptions
-
CacheException | if file could not be written |
Definition at line 48 of file ArrayCache.php.
◆ $_fileMode
The documentation for this class was generated from the following file: