symfony API

sfMemcacheCache Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.1 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.1 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

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 () Browse code

    @see sfCache

  • get () Browse code

    @see sfCache

  • getBackend () Browse code

    @see sfCache

  • getCacheInfo () Browse code

    Gets cache information.

  • getLastModified () Browse code

    @see sfCache

  • getMany () Browse code

    @see sfCache

  • (array) getMetadata ($key) Browse code

    $key A cache key

    Gets metadata about a key in the cache.

    returns An array of metadata information

  • getTimeout () Browse code

    @see sfCache

  • has () Browse code

    @see sfCache

  • initialize () 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

  • remove () Browse code

    @see sfCache

  • removePattern () Browse code

    @see sfCache

  • set () Browse code

    @see sfCache

  • setCacheInfo ($key) Browse code

    $key The cache key

    Updates the cache information for the given cache key.

  • setMetadata ($key, $key) Browse code

    $key The lifetime

    Stores metadata about a key in the cache.