Class Horde_Cache_memcache

Description

The Horde_Cache_memcache:: class provides a memcached implementation of the Horde caching system.

Located in /Cache/Cache/memcache.php (line 28)

Horde_Cache
   |
   --Horde_Cache_memcache
Variable Summary
Method Summary
 Horde_Cache_memcache Horde_Cache_memcache ([array $params = array()])
 boolean exists (string $key, [integer $lifetime = 1])
 boolean expire (string $key)
 mixed get (string $key, [integer $lifetime = 1])
 boolean set (string $key, mixed $data, [integer $lifetime = null])
Variables
mixed $_expirecache = array() (line 41)

Cache results of expire() calls (since we will get the entire object on an expire() call anyway).

Horde_Memcache $_memcache (line 35)

Horde_memcache object.

Inherited Variables

Inherited from Horde_Cache

Horde_Cache::$_params
Methods
Constructor Horde_Cache_memcache (line 48)

Construct a new Horde_Cache_memcache object.

Horde_Cache_memcache Horde_Cache_memcache ([array $params = array()])
  • array $params: Parameter array.
exists (line 135)

Checks if a given key exists in the cache.

  • return: Existance.
boolean exists (string $key, [integer $lifetime = 1])
  • string $key: Cache key to check.
  • integer $lifetime: Lifetime of the key in seconds.

Redefinition of:
Horde_Cache::exists()
Checks if a given key exists in the cache, valid for the given lifetime.
expire (line 149)

Expire any existing data for the given key.

  • return: Success or failure.
boolean expire (string $key)
  • string $key: Cache key to expire.

Redefinition of:
Horde_Cache::expire()
Expire any existing data for the given key.
get (line 64)

Attempts to retrieve cached data from the memcache and return it to the caller.

  • return: Cached data, or false if none was found.
mixed get (string $key, [integer $lifetime = 1])
  • string $key: Cache key to fetch.
  • integer $lifetime: Lifetime of the data in seconds.

Redefinition of:
Horde_Cache::get()
Attempts to retrieve a cached object and return it to the caller.
set (line 117)

Attempts to store data to the memcache.

  • return: True on success, false on failure.
boolean set (string $key, mixed $data, [integer $lifetime = null])
  • string $key: Cache key.
  • mixed $data: Data to store in the cache.
  • integer $lifetime: Data lifetime. @since Horde 3.2

Redefinition of:
Horde_Cache::set()
Attempts to store an object in the cache.

Inherited Methods

Inherited From Horde_Cache

 Horde_Cache::Horde_Cache()
 Horde_Cache::exists()
 Horde_Cache::expire()
 Horde_Cache::factory()
 Horde_Cache::get()
 Horde_Cache::output()
 Horde_Cache::set()
 Horde_Cache::singleton()
 Horde_Cache::_getLifetime()

Documentation generated on Sun, 30 Jan 2011 05:19:33 +0000 by phpDocumentor 1.4.3