symfony API

sfSQLiteCache Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu


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)


  • createSchema ()

    Creates the database schema.

    throws sfCacheException

  • get ($key, $default = null)


  • getBackend ()

  • getLastModified ($key)


  • getMany ($keys)


  • getTimeout ($key)


  • has ($key)


  • initialize ($options = array())


    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)


  • removePattern ($pattern)


  • removePatternRegexpCallback ($regexp, $key)


    Callback used when deleting keys from cache.

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


  • setDatabase ($database)

    $database The database name where to store the cache

    Sets the database name.