|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| contains ($id, array $options=null) | |
| delete ($id, array $options=null) | |
| fetch ($id, array $options=null) | |
| save ($id, $data, $lifeTime=false, array $options=null) | |
Interface for cache adapters.
Cache adapters allow Guzzle to utilize various frameworks for caching HTTP responses.
Definition at line 12 of file CacheAdapterInterface.php.
| Guzzle\Cache\CacheAdapterInterface::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 |
Implemented in Guzzle\Cache\ClosureCacheAdapter, Guzzle\Cache\Zf1CacheAdapter, Guzzle\Cache\DoctrineCacheAdapter, Guzzle\Cache\Zf2CacheAdapter, and Guzzle\Cache\NullCacheAdapter.
| Guzzle\Cache\CacheAdapterInterface::delete | ( | $id, | |
| array | $options = null |
||
| ) |
Deletes a cache entry.
| string | $id | cache id |
| array | $options | Array of cache adapter options |
Implemented in Guzzle\Cache\ClosureCacheAdapter, Guzzle\Cache\Zf1CacheAdapter, Guzzle\Cache\DoctrineCacheAdapter, Guzzle\Cache\Zf2CacheAdapter, and Guzzle\Cache\NullCacheAdapter.
| Guzzle\Cache\CacheAdapterInterface::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 |
Implemented in Guzzle\Cache\ClosureCacheAdapter, Guzzle\Cache\Zf1CacheAdapter, Guzzle\Cache\DoctrineCacheAdapter, Guzzle\Cache\Zf2CacheAdapter, and Guzzle\Cache\NullCacheAdapter.
| Guzzle\Cache\CacheAdapterInterface::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 |
Implemented in Guzzle\Cache\ClosureCacheAdapter, Guzzle\Cache\Zf1CacheAdapter, Guzzle\Cache\DoctrineCacheAdapter, Guzzle\Cache\Zf2CacheAdapter, and Guzzle\Cache\NullCacheAdapter.