Open Journal Systems  3.3.0
Guzzle\Cache\Zf1CacheAdapter Class Reference
Inheritance diagram for Guzzle\Cache\Zf1CacheAdapter:
Guzzle\Cache\AbstractCacheAdapter Guzzle\Cache\CacheAdapterInterface

Public Member Functions

 __construct (\Zend_Cache_Backend $cache)
 
 contains ($id, array $options=null)
 
 delete ($id, array $options=null)
 
 fetch ($id, array $options=null)
 
 save ($id, $data, $lifeTime=false, array $options=null)
 
- Public Member Functions inherited from Guzzle\Cache\AbstractCacheAdapter
 getCacheObject ()
 

Additional Inherited Members

- Protected Attributes inherited from Guzzle\Cache\AbstractCacheAdapter
 $cache
 

Detailed Description

Zend Framework 1 cache adapter

deprecated 151.

Definition at line 14 of file Zf1CacheAdapter.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Cache\Zf1CacheAdapter::__construct ( \Zend_Cache_Backend  $cache)
Parameters
\Zend_Cache_Backend$cacheCache object to wrap

Definition at line 19 of file Zf1CacheAdapter.php.

References Guzzle\Cache\AbstractCacheAdapter\$cache, and Guzzle\Common\Version\warn().

Member Function Documentation

◆ contains()

Guzzle\Cache\Zf1CacheAdapter::contains (   $id,
array  $options = null 
)

Test if an entry exists in the cache.

Parameters
string$idcache id The cache id of the entry to check for.
array$optionsArray of cache adapter options
Returns
bool Returns TRUE if a cache entry exists for the given cache id, FALSE otherwise.

Implements Guzzle\Cache\CacheAdapterInterface.

Definition at line 25 of file Zf1CacheAdapter.php.

◆ delete()

Guzzle\Cache\Zf1CacheAdapter::delete (   $id,
array  $options = null 
)

Deletes a cache entry.

Parameters
string$idcache id
array$optionsArray of cache adapter options
Returns
bool TRUE on success, FALSE on failure

Implements Guzzle\Cache\CacheAdapterInterface.

Definition at line 30 of file Zf1CacheAdapter.php.

◆ fetch()

Guzzle\Cache\Zf1CacheAdapter::fetch (   $id,
array  $options = null 
)

Fetches an entry from the cache.

Parameters
string$idcache id The id of the cache entry to fetch.
array$optionsArray of cache adapter options
Returns
string The cached data or FALSE, if no cache entry exists for the given id.

Implements Guzzle\Cache\CacheAdapterInterface.

Definition at line 35 of file Zf1CacheAdapter.php.

◆ save()

Guzzle\Cache\Zf1CacheAdapter::save (   $id,
  $data,
  $lifeTime = false,
array  $options = null 
)

Puts data into the cache.

Parameters
string$idThe cache id
string$dataThe cache entry/data
int | bool$lifeTimeThe lifetime. If != false, sets a specific lifetime for this cache entry
array$optionsArray of cache adapter options
Returns
bool TRUE if the entry was successfully stored in the cache, FALSE otherwise.

Implements Guzzle\Cache\CacheAdapterInterface.

Definition at line 40 of file Zf1CacheAdapter.php.


The documentation for this class was generated from the following file: