symfony API

sfProcessCache Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

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

sfProcessCache stores content in memory if you run a PHP accelerator.

Method Summary

  • string cacher()
    Gets the cache engine name or false if no PHP accelerator is enabled.
  • boolean clear()
    Clears the cache.
  • mixed get()
    Gets a value in the cache for the specified key.
  • string getPrefix()
    Gets the prefix to use for all key name.
  • boolean has()
    Returns true if a given key exists in the cache, false otherwise.
  • boolean set(, , )
    Sets a value in the cache for the specified key.

Method Details

  • (string) cacher () Browse code

    Gets the cache engine name or false if no PHP accelerator is enabled.

    returns The cache engine name

  • (boolean) clear () Browse code

    Clears the cache.

    returns true if ok, false otherwise

  • (mixed) get () Browse code

    Gets a value in the cache for the specified key.

    returns The content associated with the key or null if the key does not exist

  • (string) getPrefix () Browse code

    Gets the prefix to use for all key name.

    returns The prefix string

  • (boolean) has () Browse code

    Returns true if a given key exists in the cache, false otherwise.

    returns true if the key exists, false otherwise

  • (boolean) set (, , ) Browse code

    Sets a value in the cache for the specified key.

    returns true if ok