[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

/lib/cache/ -> sfProcessCache.class.php (sommaire)

(pas de description)

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

Définit 1 class

sfProcessCache:: (6 méthodes):
  cacher()
  getPrefix()
  set()
  get()
  has()
  clear()


Classe: sfProcessCache  - X-Ref

sfProcessCache stores content in memory if you run a PHP accelerator.

Current PHP accelerator supported: APC, XCache and Eaccelerator.

cacher()   X-Ref
Gets the cache engine name or false if no PHP accelerator is enabled.

return: string The cache engine name

getPrefix()   X-Ref
Gets the prefix to use for all key name.

return: string The prefix string

set($key, $value, $lifeTime = 0)   X-Ref
Sets a value in the cache for the specified key.

param: string The key name
param: string The content to put in cache
param: int The life time to keep the content in the cache
return: boolean true if ok

get($key)   X-Ref
Gets a value in the cache for the specified key.

param: string The key name
return: mixed The content associated with the key or null if the key does not exist

has($key)   X-Ref
Returns true if a given key exists in the cache, false otherwise.

param: string The key name
return: boolean true if the key exists, false otherwise

clear()   X-Ref
Clears the cache.

return: boolean true if ok, false otherwise



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7