spunQ_CacheInterface Class Reference

Base class for alternative interfaces to cache objects. More...

Inheritance diagram for spunQ_CacheInterface:

List of all members.

Public Member Functions

 __construct (spunQ_ICache $cache)
 Constructor.
 store ($key, $value, $timeout=0)
 retrieve ($key, &$value)
 invalidate ($key)
 clear ()
 getCache ()
 Returns the underlying cache object.

Protected Attributes

 $cache
 The cache to provide interface for.


Detailed Description

Base class for alternative interfaces to cache objects.

Using the simple functions in the spunQ_ICache interface may not always be convenient. Cache interfaces provide different means of accessing the contents of the cache (see extending classes for examples). It further implements the same interface to allow usage of the wrapped cache object.

Definition at line 10 of file CacheInterface.class.php.


Constructor & Destructor Documentation

spunQ_CacheInterface::__construct ( spunQ_ICache $  cache  ) 

Constructor.

Parameters:
$cache The cache to provide interface for.

Definition at line 22 of file CacheInterface.class.php.


Member Function Documentation

spunQ_CacheInterface::getCache (  ) 

Returns the underlying cache object.

Returns:
spunQ_ICache

Definition at line 61 of file CacheInterface.class.php.


Member Data Documentation

spunQ_CacheInterface::$cache [protected]

The cache to provide interface for.

Type:
spunQ_ICache

Definition at line 16 of file CacheInterface.class.php.


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

Generated on Fri Jul 1 11:12:38 2011 for spunQ3 by  doxygen 1.5.9