Open Monograph Press
3.3.0
|
Public Member Functions | |
__construct (StorageInterface $cache) | |
contains ($id, array $options=null) | |
delete ($id, array $options=null) | |
fetch ($id, array $options=null) | |
save ($id, $data, $lifeTime=false, array $options=null) | |
![]() | |
getCacheObject () | |
Additional Inherited Members | |
![]() | |
$cache | |
Zend Framework 2 cache adapter
http://packages.zendframework.com/docs/latest/manual/en/zend.cache.html
Definition at line 12 of file Zf2CacheAdapter.php.
Guzzle\Cache\Zf2CacheAdapter::__construct | ( | StorageInterface | $cache | ) |
StorageInterface | $cache | Zend Framework 2 cache adapter |
Definition at line 17 of file Zf2CacheAdapter.php.
References Guzzle\Cache\AbstractCacheAdapter\$cache.
Guzzle\Cache\Zf2CacheAdapter::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 22 of file Zf2CacheAdapter.php.
Guzzle\Cache\Zf2CacheAdapter::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 27 of file Zf2CacheAdapter.php.
Guzzle\Cache\Zf2CacheAdapter::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 32 of file Zf2CacheAdapter.php.
Guzzle\Cache\Zf2CacheAdapter::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 37 of file Zf2CacheAdapter.php.