[ Index ]
 

Code source de PHP PEAR 1.4.5

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

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

Cache_Container_trifile:: (6 méthodes):
  fetch()
  _getFile()
  _getExpFile()
  _getUDFile()
  save()
  _saveData()


Classe: Cache_Container_trifile  - X-Ref

Tri-file cache.

This cache container stores files with no special encoding to reduce overhead.
Expiration & user data are stored in seperate files, prefixed with a '.' and
suffixed with '.exp' & '.dat' respectively.

See http://atomized.org/PEAR/Cache_trifile.html for more information.

fetch($id, $group)   X-Ref
Fetch cached file.

param: string $id Cache ID to fetch
param: string $group Group to fetch from
return: array 1-dimensional array in the format: expiration,data,userdata

_getFile($file)   X-Ref
Get the file to store cache data in.

return: string Cache data file name

_getExpFile($file)   X-Ref
Get the file to store expiration data in.

return: string Expiration data file name

_getUDFile($file)   X-Ref
Get the file to store user data in.

return: string User data file name

save($id, $cachedata, $expires, $group, $userdata)   X-Ref
Cache file

param: string $id Cache ID
param: mixed $cachedata Data to cache
param: mixed $expires When the data expires
param: string $group Cache group to store data in
param: mixed $userdata Additional data to store
return: boolean true on success, false otherwise

_saveData($file, $data)   X-Ref
Save data in a file

param: string $file File to save data in
param: string $data Data to save
return: mixed true on success, Cache_Error otherwise



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