ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Adds expiration to a cache backend. More...
Public Member Functions | |
__construct (CacheInterface $cache, $lifetime) | |
has ($key) | |
Checks if the cache has a value for a key. More... | |
get ($key) | |
Returns the value for a key. More... | |
set ($key, $value) | |
Sets a value in the cache. More... | |
remove ($key) | |
Removes a value from the cache. More... | |
Private Attributes | |
$cache | |
$lifetime | |
Adds expiration to a cache backend.
Definition at line 19 of file ExpiringCache.php.
Assetic\Cache\ExpiringCache::__construct | ( | CacheInterface | $cache, |
$lifetime | |||
) |
Definition at line 24 of file ExpiringCache.php.
References Assetic\Cache\ExpiringCache\$cache, and Assetic\Cache\ExpiringCache\$lifetime.
Assetic\Cache\ExpiringCache::get | ( | $key | ) |
Returns the value for a key.
string | $key | A unique key |
Implements Assetic\Cache\CacheInterface.
Definition at line 44 of file ExpiringCache.php.
Assetic\Cache\ExpiringCache::has | ( | $key | ) |
Checks if the cache has a value for a key.
string | $key | A unique key |
Implements Assetic\Cache\CacheInterface.
Definition at line 30 of file ExpiringCache.php.
References time.
Assetic\Cache\ExpiringCache::remove | ( | $key | ) |
Removes a value from the cache.
string | $key | A unique key |
Implements Assetic\Cache\CacheInterface.
Definition at line 55 of file ExpiringCache.php.
Assetic\Cache\ExpiringCache::set | ( | $key, | |
$value | |||
) |
Sets a value in the cache.
string | $key | A unique key |
string | $value | The value to cache |
Implements Assetic\Cache\CacheInterface.
Definition at line 49 of file ExpiringCache.php.
References time.
|
private |
Definition at line 21 of file ExpiringCache.php.
Referenced by Assetic\Cache\ExpiringCache\__construct().
|
private |
Definition at line 22 of file ExpiringCache.php.
Referenced by Assetic\Cache\ExpiringCache\__construct().