ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
A config cache stores values using var_export() and include. More...
Public Member Functions | |
__construct ($dir) | |
Construct. More... | |
has ($resource) | |
Checks of the cache has a file. More... | |
set ($resource, $value) | |
Writes a value to a file. More... | |
get ($resource) | |
Loads and returns the value for the supplied cache key. More... | |
getTimestamp ($resource) | |
Returns a timestamp for when the cache was created. More... | |
Private Member Functions | |
getSourcePath ($resource) | |
Returns the path where the file corresponding to the supplied cache key can be included from. More... | |
Private Attributes | |
$dir | |
A config cache stores values using var_export() and include.
Definition at line 19 of file ConfigCache.php.
Assetic\Cache\ConfigCache::__construct | ( | $dir | ) |
Construct.
string | $dir | The cache directory |
Definition at line 28 of file ConfigCache.php.
References Assetic\Cache\ConfigCache\$dir.
Assetic\Cache\ConfigCache::get | ( | $resource | ) |
Loads and returns the value for the supplied cache key.
string | $resource | A cache key |
Definition at line 75 of file ConfigCache.php.
References $path, and Assetic\Cache\ConfigCache\getSourcePath().
|
private |
Returns the path where the file corresponding to the supplied cache key can be included from.
string | $resource | A cache key |
Definition at line 117 of file ConfigCache.php.
Referenced by Assetic\Cache\ConfigCache\get(), Assetic\Cache\ConfigCache\getTimestamp(), Assetic\Cache\ConfigCache\has(), and Assetic\Cache\ConfigCache\set().
Assetic\Cache\ConfigCache::getTimestamp | ( | $resource | ) |
Returns a timestamp for when the cache was created.
string | $resource | A cache key |
Definition at line 93 of file ConfigCache.php.
References $path, and Assetic\Cache\ConfigCache\getSourcePath().
Assetic\Cache\ConfigCache::has | ( | $resource | ) |
Checks of the cache has a file.
string | $resource | A cache key |
Definition at line 40 of file ConfigCache.php.
References Assetic\Cache\ConfigCache\getSourcePath().
Assetic\Cache\ConfigCache::set | ( | $resource, | |
$value | |||
) |
Writes a value to a file.
string | $resource | A cache key |
mixed | $value | A value to cache |
Definition at line 51 of file ConfigCache.php.
References Assetic\Cache\ConfigCache\$dir, $path, and Assetic\Cache\ConfigCache\getSourcePath().
|
private |
Definition at line 21 of file ConfigCache.php.
Referenced by Assetic\Cache\ConfigCache\__construct(), and Assetic\Cache\ConfigCache\set().