symfony API

sfSQLiteCache Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 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 content in a sqlite database.

Inheritence

sfSQLiteCache  <  sfCache

Method Summary

  • boolean clean()
    Cleans the cache.
  • createSchema()
    Creates the database schema.
  • string get(, , )
    Tests if a cache is available and (if yes) returns it.
  • string getDatabase()
    Gets the database name.
  • boolean has(, , )
    Returns true if there is a cache for the given id and namespace.
  • initialize()
    Initializes the cache.
  • lastModified()
  • boolean remove(, )
    Removes an element from the cache.
  • boolean set(, , )
    Saves some data in the cache.
  • setDatabase()
    Sets the database name.
  • __construct()
    Constructor.
  • __destruct()
    Destructor.

Methods inherited from sfCache

clean , get , getLifeTime , has , lastModified , remove , set , setLifeTime

Method Details

  • (boolean) clean () Browse code

    Cleans the cache.


    If no namespace is specified all cache files will be destroyed
    else only cache files of the specified namespace will be destroyed.

    returns true if no problem

  • createSchema () Browse code

    Creates the database schema.

    throws sfException

  • (string) get (, , ) Browse code

    Tests if a cache is available and (if yes) returns it.

    returns The data in the cache (or null if no cache available)

  • (string) getDatabase () Browse code

    Gets the database name.

    returns The database name

  • (boolean) has (, , ) Browse code

    Returns true if there is a cache for the given id and namespace.

    returns true if the cache exists, false otherwise

  • initialize () Browse code

    Initializes the cache.

  • lastModified () Browse code

  • (boolean) remove (, ) Browse code

    Removes an element from the cache.

    returns true if no problem

  • (boolean) set (, , ) Browse code

    Saves some data in the cache.

    returns true if no problem

  • setDatabase () Browse code

    Sets the database name.

  • __construct () Browse code

    Constructor.

  • __destruct () Browse code

    Destructor.