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

0.11 Doctrine_Cache_Xcache

Doctrine Cache Xcache

Xcache cache driver

Inheritence

Doctrine_Cache_Xcache  < Doctrine_Cache_Driver

Method Summary

Returns Name Description
mixed contains
boolean delete
string fetch
boolean save Note : $data is always saved as a string
__construct

Method Details

  • $id cache id

    (mixed) contains($id)

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

    Doctrine_Cache_Xcache


  • $id cache id

    (boolean) delete($id)

    Remove a cache record

    Doctrine_Cache_Xcache


  • $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).

    Doctrine_Cache_Xcache


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

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

    Save some string datas into a cache record

    Note : $data is always saved as a string

    Doctrine_Cache_Xcache


  • $options associative array of cache driver options

    __construct($options = array())

    constructor


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine