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

Development Doctrine_Cache

Doctrine Cache

Method Summary

Method Details

  • $option the option name

    (mixed) getOption($option)

    Doctrine_Cache


  • (string) pop()

    pops a query from the stack


  • (boolean) isSuccessful()

    Doctrine_Cache


  • $namespace optional query namespace

    (array) getAll($namespace = null)

    getQueries

    Doctrine_Cache


  • $query sql query string
    $namespace connection namespace

    add((string|array) $query, $namespace = null)

    add adds a query to internal query stack


  • appendStats()

    adds all queries to stats file


  • (boolean) clean()

    save


  • (array) preFetch(( ) $event)

    preFetch listens the preFetch event of Doctrine_Connection_Statement

    advances the internal pointer of cached data and returns the current element


  • getDriver()

    getDriver returns the current cache driver


  • $driver cache driver name or a driver object
    $options cache driver options

    __construct((Doctrine_Cache_Interface|string) $driver, $options = array())

    constructor


  • (array) preFetchAll(( ) $event)

    preFetch listens the preFetchAll event of Doctrine_Connection_Statement

    returns the current cache data array


  • (integer) count()

    Doctrine_Cache


  • (boolean) preQuery(( ) $event)

    preQuery listens on the Doctrine_Event preQuery event

    adds the issued query to internal query stack and checks if cached element exists


  • $option the option name
    $value option value

    (boolean) setOption($option, $value)

    Doctrine_Cache


  • (ArrayIterator) getIterator()

    Doctrine_Cache


  • (boolean) preExecute(( ) $event)

    preExecute listens the preExecute event of Doctrine_Connection_Statement

    adds the issued query to internal query stack and checks if cached element exists


  • reset()

    removes all queries from the query stack


  • (array) readStats()


Comments (0) [ add comment ]

 No Comments

Add Comment

Add New Comment
Please enter follow the doctrine