| [ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 206 lignes (6 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
Classe: Horde_Cache - X-Ref
The Horde_Cache:: class provides a common abstracted interface into| Horde_Cache($params = array() X-Ref |
| Construct a new Horde_Cache object. param: array $params Parameter array. |
| get($key, $lifetime = 1) X-Ref |
| Attempts to retrieve a cached object and return it to the caller. param: string $key Object ID to query. param: integer $lifetime Lifetime of the object in seconds. return: mixed Cached data, or false if none was found. |
| set($key, $data) X-Ref |
| Attempts to store an object in the cache. param: string $key Object ID used as the caching 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 a cached object. param: string $key Object ID to query. param: integer $lifetime Lifetime of the object 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. 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. |
| _doGC($secs) X-Ref |
| Do any garbage collection needed for the driver. param: integer $secs The minimum amount of time (in seconds) required |
| factory($driver, $params = array() X-Ref |
| Attempts to return a concrete Horde_Cache instance based on $driver. param: mixed $driver The type of concrete Horde_Cache subclass to param: array $params A hash containing any additional return: Horde_Cache The newly created concrete Horde_Cache instance, or |
| singleton($driver, $params = array() X-Ref |
| Attempts to return a reference to a concrete Horde_Cache instance based on $driver. It will only create a new instance if no Horde_Cache instance with the same parameters currently exists. This should be used if multiple cache backends (and, thus, multiple Horde_Cache instances) are required. This method must be invoked as: $var = &Horde_Cache::singleton() param: mixed $driver The type of concrete Horde_Cache subclass to param: array $params A hash containing any additional configuration or return: Horde_Cache The concrete Horde_Cache reference, or false on |
| Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |