Pluf_Cache_File Class Reference

Inheritance diagram for Pluf_Cache_File:

Pluf_Cache

List of all members.

Public Member Functions

 __construct ()
 set ($key, $value, $timeout=null)
 get ($key, $default=null)
 _keyToFile ($key)


Detailed Description

File based cache.

Info are stored in the 'cache_file_folder' folder. In the folder, 2 subdirectories are created based on the md5 of the key.


Constructor & Destructor Documentation

Pluf_Cache_File::__construct (  ) 


Member Function Documentation

Pluf_Cache_File::set ( key,
value,
timeout = null 
)

Set a value in the cache.

Parameters:
string Key to store the information
mixed Value to store
int Timeout in seconds (null)
Returns:
bool Success

Reimplemented from Pluf_Cache.

Pluf_Cache_File::get ( key,
default = null 
)

Get value from the cache.

Parameters:
string Key to get the information
mixed Default value to return if cache miss (null)
mixed Stored value or default

Reimplemented from Pluf_Cache.

Pluf_Cache_File::_keyToFile ( key  ) 

Convert a key into a path to a file.

Parameters:
string Key
Returns:
string Path to file


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

Generated on Wed Feb 3 15:44:51 2010 for Pluf by  doxygen