[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Cache/ -> zps4.php (sommaire)

(pas de description)

Poids: 86 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Horde_Cache_zps4:: (5 méthodes):
  get()
  set()
  output()
  exists()
  expire()


Classe: Horde_Cache_zps4  - X-Ref

The Horde_Cache_zps4:: class provides a Zend Performance Suite
(version 4.0+) implementation of the Horde caching system.

$Horde: framework/Cache/Cache/zps4.php,v 1.1.10.4 2006/01/01 21:28:10 jan Exp $

Copyright 1999-2006 Chuck Hagenbuch <chuck@horde.org>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

get($key, $lifetime = 1)   X-Ref
Attempts to retrieve a piece of cached data and return it to the caller.

param: string  $key       Cache key to fetch.
param: integer $lifetime  Lifetime of the key in seconds.
return: mixed  Cached data, or false if none was found.

set($key, $data)   X-Ref
Attempts to store an object to the cache.

param: string $key   Cache key (identifier).
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.

param: string  $key       Cache key to output.
param: integer $lifetime  Lifetime of the key 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.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7