Cache_File Class Reference

Inherits Cache.

Collaboration diagram for Cache_File:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Cache_File ()
 set ($key, $var, $expire=0)
get ($key)
 delete ($key)
 flush ()
 gc ()
 stats ()
 _mangle_key ($key)

Public Attributes

 $cache_dir

Detailed Description

PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet

Author:
Judd Vinet <jvinet@zeroflux.org>

Description: File-based cache driver. This driver is useful for times when you don't have a more robust caching facility, such as eAccelerator or MemCache.

WARNING: These is no file locking in place for this driver.

Definition at line 14 of file file.php.


Member Function Documentation

Cache_File::_mangle_key ( key  ) 

Mangle key names into filesystem-friendly format

Definition at line 120 of file file.php.

Referenced by delete(), get(), and set().

Cache_File::Cache_File (  ) 

Constructor

Definition at line 21 of file file.php.

References Cache::Cache().

Cache_File::delete ( key  ) 

Reimplemented from Cache.

Definition at line 78 of file file.php.

References _mangle_key().

Cache_File::flush (  ) 

Flush entire cache.

Reimplemented from Cache.

Definition at line 89 of file file.php.

Cache_File::gc (  ) 

Expire old entries.

Reimplemented from Cache.

Definition at line 100 of file file.php.

& Cache_File::get ( key  ) 

Reimplemented from Cache.

Definition at line 54 of file file.php.

References _mangle_key().

Cache_File::set ( key,
var,
expire = 0 
)
Parameters:
string $key Unique key name to store value under
mixed $var Variable to store
int $expire Expiration time (from now) in seconds. Use zero to never expire.

Reimplemented from Cache.

Definition at line 34 of file file.php.

References $fp, and _mangle_key().

Cache_File::stats (  ) 

Return some usage statistics.

Reimplemented from Cache.

Definition at line 110 of file file.php.


Member Data Documentation

Cache_File::$cache_dir

Definition at line 16 of file file.php.


The documentation for this class was generated from the following file:

Generated on Wed Jan 13 09:21:04 2010 for Pronto Framework by  doxygen 1.6.1