Pt_BR En Ja De Fr 
You are currently viewing the 0.10 branch api documentation. Switch to 0.11 or 1.0

0.10 Doctrine_Cache_Db

Doctrine Cache Db

Inheritence

Doctrine_Cache_Db  < Doctrine_Cache_Driver

Method Summary


Method Details

  • $id cache id

    (boolean) delete($id)

    Remove a cache record

    Doctrine_Cache_Db


  • $id cache id

    (mixed) contains($id)

    Test if a cache is available or not (for the given id)

    Doctrine_Cache_Db


  • $data data to cache
    $id cache id
    $lifeTime if != false, set a specific lifetime for this cache record (null => infinite lifeTime)

    (boolean) save($data, $id, $lifeTime = false)

    Save some string datas into a cache record

    Note : $data is always saved as a string

    Doctrine_Cache_Db


  • $id cache id
    $testCacheValidity if set to false, the cache validity won't be tested

    (string) fetch($id, $testCacheValidity = true)

    Test if a cache is available for the given id and (if yes) return it (false else)

    Note : return value is always "string" (unserialization is done by the core not by the backend)

    Doctrine_Cache_Db


  • $_options an array of options

    __construct($options, $_options)

    constructor


  • (integer) count()

    count returns the number of cached elements


  • getConnection()

    getConnection returns the connection object associated with this cache driver

    Doctrine_Cache_Db


  • deleteAll()

    Removes all cache records

    $return bool true on success, false on failure


  • createTable()

    Creates the cache table.


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine