| [ Index ] |
PHP Cross Reference of Akelos Framework |
[Source view] [Print]
(no description)
| Author: | Bermi Ferrer |
| Copyright: | Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org |
| License: | GNU Lesser General Public License |
| File Size: | 338 lines (10 kb) |
| Included or required: | 2 times |
| Referenced: | 0 times |
| Includes or requires: | 1 file Ak.php |
AkAdodbCache:: (10 methods):
setDb()
setRefreshTime()
setLifeTime()
setMemoryCaching()
setAutomaticSerialization()
init()
get()
save()
remove()
clean()
Class: AkAdodbCache - X-Ref
Dabase cache driver for the AkCache class| setDb($db) X-Ref |
| $this->_db setter Use this method to set $this->_db value param: object $db Handles an instance of current database conection return: void |
| setRefreshTime($refresh_time) X-Ref |
| $this->_refreshTime setter Use this method to set $this->_refreshTime value param: integer $refresh_time Timestamp of the last valid cache return: void |
| setLifeTime($life_time = 3600) X-Ref |
| $this->_lifeTime setter Use this method to set $this->_lifeTime value param: integer $life_time Cache lifetime (in seconds) return: void |
| setMemoryCaching($memory_caching = false) X-Ref |
| $this->_memoryCaching setter Use this method to set $this->_memoryCaching value param: boolean $memory_caching Enable / Disable "Memory Caching" return: void |
| setAutomaticSerialization($automatic_serialization = false) X-Ref |
| $this->_automaticSerialization setter Use this method to set $this->_automaticSerialization value param: boolean $automatic_serialization Enable / disable automatic serialization return: void |
| init($options = array() X-Ref |
| Class constructor (ALA Akelos Framework) param: array $options return: void |
| get($id, $group = 'default') X-Ref |
| Test if a cache is available and (if yes) return it param: string $id Cache id param: string $group Name of the cache group. return: mixed Data of the cache (or false if no cache available) |
| save($data, $id = null, $group = null) X-Ref |
| Save some data in the cache param: string $data Data to put in cache param: string $id Cache id. By default it will use the Id specified param: string $group Name of the cache group. By default it will use return: boolean True if no problem |
| remove($id, $group = 'default') X-Ref |
| Remove a cache item from the database param: string $id Cache id param: string $group Name of the cache group return: boolean True if no problem |
| clean($group = false, $mode = 'ingroup') X-Ref |
| Clean the cache If no group is specified all cache items will be removed from the database else only cache items of the specified group will be destroyed param: string $group If no group is specified all cache items will be param: string $mode Flush cache mode. Options are: return: boolean True if no problem |
| Generated: Mon Oct 27 12:43:49 2008 | Cross-referenced by PHPXref 0.6 |