$callables
$callables : array
Cache adapter that defers to closures for implementation
__construct(array $callables)
The callables array is an array mapping the actions of the cache adapter to callables.
array | $callables | array of action names to callable |
if the callable is not callable
contains(string $id, array $options = null) : boolean
Test if an entry exists in the cache.
string | $id | cache id The cache id of the entry to check for. |
array | $options | Array of cache adapter options |
Returns TRUE if a cache entry exists for the given cache id, FALSE otherwise.
save(string $id, string $data, integer|boolean $lifeTime = false, array $options = null) : boolean
Puts data into the cache.
string | $id | The cache id |
string | $data | The cache entry/data |
integer|boolean | $lifeTime | The lifetime. If != false, sets a specific lifetime for this cache entry |
array | $options | Array of cache adapter options |
TRUE if the entry was successfully stored in the cache, FALSE otherwise.