| [ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 230 lignes (6 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
Horde_Cache_file:: (8 méthodes):
Horde_Cache_file()
get()
set()
output()
exists()
expire()
_keyToFile()
_doGC()
Classe: Horde_Cache_file - X-Ref
The Horde_Cache_file:: class provides a filesystem implementation of the| Horde_Cache_file($params = array() X-Ref |
| Construct a new Horde_Cache_file object. param: array $params Parameter array. |
| get($key, $lifetime = 1) X-Ref |
| Attempts to retrieve cached data from the filesystem and return it to the caller. param: string $key Cache key to fetch. param: integer $lifetime Lifetime of the data in seconds. return: mixed Cached data, or false if none was found. |
| set($key, $data) X-Ref |
| Attempts to store data to the filesystem. param: string $key Cache key. param: mixed $data Data to store in the cache. return: boolean True on success, false on failure. |
| output($key, $lifetime = 1) X-Ref |
| Attempts to directly output cached data from the filesystem. param: string $key Cache key to output. param: integer $lifetime Lifetime of the data in seconds. return: mixed Cached data, or false if none was found. |
| exists($key, $lifetime = 1) X-Ref |
| Checks if a given key exists in the cache, valid for the given lifetime. If it exists but is expired, delete the file. param: string $key Cache key to check. param: integer $lifetime Lifetime of the key in seconds. return: boolean Existance. |
| expire($key) X-Ref |
| Expire any existing data for the given key. param: string $key Cache key to expire. return: boolean Success or failure. |
| _keyToFile($key) X-Ref |
| Map a cache key to a unique filename. param: string $key Cache key. return: string Fully qualified filename. |
| _doGC($secs) X-Ref |
| Do any garbage collection needed for the driver. param: integer $secs The minimum amount of time (in seconds) required |
| Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |