Cache class that stores cached content in memcache.
Inheritence
sfMemcacheCache
<
sfCache
Method Summary
Methods inherited from sfCache
clean , get , getBackend , getLastModified , getLifetime , getMany , getOption , getTimeout , has , initialize , patternToRegexp , remove , removePattern , set , setOption , __construct
Method Details
-
clean ($mode = sfCache::ALL)
Browse code
-
get ($key, $default = null)
Browse code
-
-
Gets cache information.
-
getLastModified ($key)
Browse code
-
-
(array) getMetadata ($key)
Browse code
Gets metadata about a key in the cache.
returns An array of metadata information
-
-
-
initialize ($options = array())
Browse code
Initializes this sfCache instance.
Available options: * memcache: A memcache object (optional) * host: The default host (default to localhost)
* port: The port for the default server (default to 11211)
* persistent: true if the connection must be persistent, false otherwise (true by default) * servers: An array of additional servers (keys: host, port, persistent) * see sfCache for options available for all drivers
-
-
removePattern ($pattern)
Browse code
-
set ($key, $data, $lifetime = null)
Browse code
-
setCacheInfo ($key, $delete = false)
Browse code
| $key |
The cache key
|
| $delete |
Delete key or not
|
Updates the cache information for the given cache key.
-
setMetadata ($key, $lifetime)
Browse code
| $key |
A cache key
|
| $lifetime |
The lifetime
|
Stores metadata about a key in the cache.
|