[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

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 caching system.

Optional parameters:<pre>
'dir'     The directory to store the cache files in.
'prefix'  The filename prefix to use for the cache files.</pre>

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

Copyright 1999-2006 Anil Madhavapeddy <anil@recoil.org>
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.

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