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


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.


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


  • createSchema () Browse code

    Creates the database schema.

    throws sfCacheException

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


  • getBackend () Browse code

  • getLastModified ($key) Browse code


  • getMany ($keys) Browse code


  • getTimeout ($key) Browse code


  • has ($key) Browse code


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


    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


  • removePattern ($pattern) Browse code


  • removePatternRegexpCallback ($regexp, $key) Browse code


    Callback used when deleting keys from cache.

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


  • setDatabase ($database) Browse code

    $database The database name where to store the cache

    Sets the database name.