Open Monograph Press  3.3.0
Guzzle\Cache\NullCacheAdapter Class Reference
Inheritance diagram for Guzzle\Cache\NullCacheAdapter:
Guzzle\Cache\AbstractCacheAdapter Guzzle\Cache\CacheAdapterInterface

Public Member Functions

 __construct ()
 
 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

Null cache adapter

Definition at line 8 of file NullCacheAdapter.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Cache\NullCacheAdapter::__construct ( )

Definition at line 10 of file NullCacheAdapter.php.

Member Function Documentation

◆ contains()

Guzzle\Cache\NullCacheAdapter::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 12 of file NullCacheAdapter.php.

◆ delete()

Guzzle\Cache\NullCacheAdapter::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 17 of file NullCacheAdapter.php.

◆ fetch()

Guzzle\Cache\NullCacheAdapter::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 22 of file NullCacheAdapter.php.

◆ save()

Guzzle\Cache\NullCacheAdapter::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 27 of file NullCacheAdapter.php.


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