symfony API

sfSQLiteCache Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 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 a SQLite database.

Inheritence

sfSQLiteCache  <  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

    $mode

  • createSchema () Browse code

    Creates the database schema.

    throws sfCacheException

  • get ($key, $default = null) Browse code

    $key
    $default

  • getBackend () Browse code

  • getLastModified ($key) Browse code

    $key

  • getMany ($keys) Browse code

    $keys

  • getTimeout ($key) Browse code

    $key

  • has ($key) Browse code

    $key

  • initialize ($options = array()) Browse code

    $options

    Initializes this sfCache instance.


    Available options:

    * database: File where to put the cache database (or :memory: to store cache in memory)

    * see sfCache for options available for all drivers

  • remove ($key) Browse code

    $key

  • removePattern ($pattern) Browse code

    $pattern

  • removePatternRegexpCallback ($regexp, $key) Browse code

    $regexp
    $key

    Callback used when deleting keys from cache.

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

    $key
    $data
    $lifetime

  • setDatabase ($database) Browse code

    $database The database name where to store the cache

    Sets the database name.