[ Index ]
 

Code source de PHP PEAR 1.4.5

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

title

Body

[fermer]

/Cache/Container/ -> file.php (sommaire)

(pas de description)

Poids: 388 lignes (13 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 1 fichier
 Cache/Container.php

Définit 1 class

Cache_Container_file:: (10 méthodes):
  Cache_Container_file()
  fetch()
  save()
  remove()
  flush()
  idExists()
  garbageCollection()
  doGarbageCollection()
  getFilename()
  deleteDir()


Classe: Cache_Container_file  - X-Ref

Stores cache contents in a file.

Cache_Container_file($options = '')   X-Ref
Creates the cache directory if neccessary

param: array   Config options: ["cache_dir" => ..., "filename_prefix" => ...]

fetch($id, $group)   X-Ref
Pas de description

save($id, $cachedata, $expires, $group, $userdata)   X-Ref
Stores a dataset.

WARNING: If you supply userdata it must not contain any linebreaks,
otherwise it will break the filestructure.

remove($id, $group)   X-Ref
Pas de description

flush($group)   X-Ref
Pas de description

idExists($id, $group)   X-Ref
Pas de description

garbageCollection($maxlifetime)   X-Ref
Deletes all expired files.

Garbage collection for files is a rather "expensive", "long time"
operation. All files in the cache directory have to be examined which
means that they must be opened for reading, the expiration date has to be
read from them and if neccessary they have to be unlinked (removed).
If you have a user comment for a good default gc probability please add it to
to the inline docs.

param: integer Maximum lifetime in seconds of an no longer used/touched entry

doGarbageCollection($maxlifetime, $dir)   X-Ref
Does the recursive gc procedure, protected.

param: integer Maximum lifetime in seconds of an no longer used/touched entry
param: string  directory to examine - don't sets this parameter, it's used for a

getFilename($id, $group)   X-Ref
Returns the filename for the specified id.

param: string  dataset ID
param: string  cache group
return: string  full filename with the path

deleteDir($dir)   X-Ref
Deletes a directory and all files in it.

param: string  directory
return: integer number of removed files



Généré le : Sun Feb 25 14:08:00 2007 par Balluche grâce à PHPXref 0.7