|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (array $callables) | |
| contains ($id, array $options=null) | |
| delete ($id, array $options=null) | |
| fetch ($id, array $options=null) | |
| save ($id, $data, $lifeTime=false, array $options=null) | |
Protected Attributes | |
| $callables | |
Cache adapter that defers to closures for implementation
Definition at line 8 of file ClosureCacheAdapter.php.
| Guzzle\Cache\ClosureCacheAdapter::__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 |
Definition at line 29 of file ClosureCacheAdapter.php.
References Guzzle\Cache\ClosureCacheAdapter\$callables.
| Guzzle\Cache\ClosureCacheAdapter::contains | ( | $id, | |
| array | $options = null |
||
| ) |
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 |
Implements Guzzle\Cache\CacheAdapterInterface.
Definition at line 41 of file ClosureCacheAdapter.php.
| Guzzle\Cache\ClosureCacheAdapter::delete | ( | $id, | |
| array | $options = null |
||
| ) |
Deletes a cache entry.
| string | $id | cache id |
| array | $options | Array of cache adapter options |
Implements Guzzle\Cache\CacheAdapterInterface.
Definition at line 46 of file ClosureCacheAdapter.php.
| Guzzle\Cache\ClosureCacheAdapter::fetch | ( | $id, | |
| array | $options = null |
||
| ) |
Fetches an entry from the cache.
| string | $id | cache id The id of the cache entry to fetch. |
| array | $options | Array of cache adapter options |
Implements Guzzle\Cache\CacheAdapterInterface.
Definition at line 51 of file ClosureCacheAdapter.php.
| Guzzle\Cache\ClosureCacheAdapter::save | ( | $id, | |
| $data, | |||
$lifeTime = false, |
|||
| array | $options = null |
||
| ) |
Puts data into the cache.
| string | $id | The cache id |
| string | $data | The cache entry/data |
| int | bool | $lifeTime | The lifetime. If != false, sets a specific lifetime for this cache entry |
| array | $options | Array of cache adapter options |
Implements Guzzle\Cache\CacheAdapterInterface.
Definition at line 56 of file ClosureCacheAdapter.php.
|
protected |
Mapping of method names to callables
Definition at line 16 of file ClosureCacheAdapter.php.
Referenced by Guzzle\Cache\ClosureCacheAdapter\__construct().