symfony API

sfMemcacheCache Class

« Back to API menu

action

addon

autoload

cache

command

config

controller

creole

database

debug

exception

filter

form

generator

helper

i18n

log

plugin

propel

request

response

routing

storage

task

test

user

util

validator

view

widget

You are currently browsing the symfony API for the 1.1 version. Switch to:

Cache class that stores cached content in memcache.

Inheritence

sfMemcacheCache  <  sfCache

Method Summary

Methods inherited from sfCache

__construct , removePattern , getTimeout , initialize , get , getLifetime , patternToRegexp , getBackend , remove , set , clean , getLastModified , getOption , has , getMany , setOption

Method Details

  • removePattern ($pattern)

  • getTimeout ($key)

  • setCacheInfo ($key)

    $key The cache key

    Updates the cache information for the given cache key.

  • getCacheInfo ()

    Gets cache information.

  • initialize ($options = array())

    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

  • get ($key, $default = null)

  • (array) getMetadata ($key)

    $key A cache key

    Gets metadata about a key in the cache.

    returns An array of metadata information

  • getBackend ()

  • remove ($key)

  • set ($key, $data, $lifetime = null)

  • clean ($mode = sfCache::ALL)

  • getLastModified ($key)

  • setMetadata ($key, $lifetime)

    $key The lifetime

    Stores metadata about a key in the cache.

  • has ($key)

  • getMany ($keys)