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.
Ubiquity$ArrayCache This class is part of Ubiquity
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.0.4
Definition at line 18 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"=>"0755"] |
Definition at line 42 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 123 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 60 of file ArrayCache.php.
◆ fetch()
Fetches data stored for the given key.
- Parameters
-
- Returns
- mixed the cached data
Definition at line 90 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 101 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 112 of file ArrayCache.php.
◆ init()
◆ remove()
◆ setRoot()
◆ store()
store |
( |
|
$key, |
|
|
|
$code, |
|
|
|
$tag = null |
|
) |
| |
◆ $_fileMode
◆ PHP_TAG
const PHP_TAG = "<?php\n" |
The documentation for this class was generated from the following file: