Zend Framework  1.12
Public Member Functions | Protected Member Functions | List of all members
Zend_Cache_Backend_ZendServer_ShMem Class Reference

Public Member Functions

 __construct (array $options=array())
 Constructor.
 
- Public Member Functions inherited from Zend_Cache_Backend_ZendServer
 load ($id, $doNotTestCacheValidity=false)
 Test if a cache is available for the given id and (if yes) return it (false else)
 
 test ($id)
 Test if a cache is available or not (for the given id)
 
 save ($data, $id, $tags=array(), $specificLifetime=false)
 Save some string datas into a cache record.
 
 remove ($id)
 Remove a cache record.
 
 clean ($mode=Zend_Cache::CLEANING_MODE_ALL, $tags=array())
 Clean some cache records.
 
- Public Member Functions inherited from Zend_Cache_Backend
 __construct (array $options=array())
 Constructor.
 
 setDirectives ($directives)
 Set the frontend directives.
 
 setOption ($name, $value)
 Set an option.
 
 getOption ($name)
 Returns an option.
 
 getLifetime ($specificLifetime)
 Get the life time.
 
 isAutomaticCleaningAvailable ()
 Return true if the automatic cleaning is available for the backend.
 
 getTmpDir ()
 Determine system TMP directory and detect if we have read access.
 
- Public Member Functions inherited from Zend_Cache_Backend_Interface
 setDirectives ($directives)
 Set the frontend directives.
 

Protected Member Functions

 _store ($data, $id, $timeToLive)
 Store data.
 
 _fetch ($id)
 Fetch data.
 
 _unset ($id)
 Unset data.
 
 _clear ()
 Clear cache.
 
- Protected Member Functions inherited from Zend_Cache_Backend_ZendServer
 _store ($data, $id, $timeToLive)
 Store data.
 
 _fetch ($id)
 Fetch data.
 
 _unset ($id)
 Unset data.
 
 _clear ()
 Clear cache.
 
- Protected Member Functions inherited from Zend_Cache_Backend
 _isGoodTmpDir ($dir)
 Verify if the given temporary directory is readable and writable.
 
 _loggerSanity ()
 Make sure if we enable logging that the Zend_Log class is available.
 
 _log ($message, $priority=4)
 Log a message at the WARN (4) priority.
 

Additional Inherited Members

- Protected Attributes inherited from Zend_Cache_Backend_ZendServer
 $_options
 

Constructor & Destructor Documentation

__construct ( array  $options = array())

Constructor.

Parameters
array$optionsassociative array of options
Exceptions
Zend_Cache_Exception

Member Function Documentation

_clear ( )
protected

Clear cache.

_fetch (   $id)
protected

Fetch data.

Parameters
string$idCache id
_store (   $data,
  $id,
  $timeToLive 
)
protected

Store data.

Parameters
mixed$dataObject to store
string$idCache id
int$timeToLiveTime to live in seconds
_unset (   $id)
protected

Unset data.

Parameters
string$idCache id
Returns
boolean true if no problem