Development Doctrine_Cache
Doctrine Cache
Method Summary
| Returns | Name | Description |
|---|---|---|
| add | ||
| appendStats | adds all queries to stats file | |
| boolean | clean | |
| integer | count | |
| array | getAll | |
| getDriver | ||
| ArrayIterator | getIterator | |
| mixed | getOption | |
| boolean | isSuccessful | |
| string | pop | pops a query from the stack |
| boolean | preExecute | adds the issued query to internal query stack and checks if cached element exists |
| array | preFetch | advances the internal pointer of cached data and returns the current element |
| array | preFetchAll | returns the current cache data array |
| boolean | preQuery | adds the issued query to internal query stack and checks if cached element exists |
| array | readStats | |
| reset | removes all queries from the query stack | |
| boolean | setOption | |
| __construct |
Method Details
-
$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
-
(integer) count()
Doctrine_Cache
-
$namespace optional query namespace (array) getAll($namespace = null)
getQueries
Doctrine_Cache
-
getDriver()
getDriver returns the current cache driver
-
(ArrayIterator) getIterator()
Doctrine_Cache
-
$option the option name (mixed) getOption($option)
Doctrine_Cache
-
(boolean) isSuccessful()
Doctrine_Cache
-
(string) pop()
pops a query from the stack
-
(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
-
(array) preFetch(( ) $event)
preFetch listens the preFetch event of Doctrine_Connection_Statement
advances the internal pointer of cached data and returns the current element
-
(array) preFetchAll(( ) $event)
preFetch listens the preFetchAll event of Doctrine_Connection_Statement
returns the current cache data array
-
(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
-
(array) readStats()
-
reset()
removes all queries from the query stack
-
$option the option name $value option value (boolean) setOption($option, $value)
Doctrine_Cache
-
$driver cache driver name or a driver object $options cache driver options __construct((Doctrine_Cache_Interface|string) $driver, $options = array())
constructor




Comments (0) [ add comment ]
No Comments
Add Comment