RubberFileSystem Class Reference
[Application-wide cache subsystem]

Simple filesystem cache requiring external manual cleanup. More...

Inheritance diagram for RubberFileSystem:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($directory= 'cache/')
 isAlive ()
 clean ()
 
Returns:
CachePeer

 get ($key)
 delete ($key)

Static Public Member Functions

static create ($directory= 'cache/')
 
Returns:
RubberFileSystem


Protected Member Functions

 store ($action, $key, &$value, $expires=0)

Private Member Functions

 operate ($path, $value=null, $expires=null)
 makePath ($key)

Private Attributes

 $directory = null


Detailed Description

Simple filesystem cache requiring external manual cleanup.

Definition at line 18 of file RubberFileSystem.class.php.


Constructor & Destructor Documentation

RubberFileSystem::__construct ( directory = 'cache/'  ) 

Definition at line 30 of file RubberFileSystem.class.php.

References $directory.


Member Function Documentation

static RubberFileSystem::create ( directory = 'cache/'  )  [static]

Returns:
RubberFileSystem

Examples:
cacheSettings.php.

Definition at line 25 of file RubberFileSystem.class.php.

References $directory.

RubberFileSystem::isAlive (  ) 

Reimplemented from CachePeer.

Definition at line 48 of file RubberFileSystem.class.php.

RubberFileSystem::clean (  ) 

Returns:
CachePeer

Reimplemented from CachePeer.

Definition at line 53 of file RubberFileSystem.class.php.

References FileUtils::removeDirectory().

Here is the call graph for this function:

RubberFileSystem::get ( key  ) 

Reimplemented from CachePeer.

Definition at line 61 of file RubberFileSystem.class.php.

References makePath(), and operate().

Here is the call graph for this function:

RubberFileSystem::delete ( key  ) 

Reimplemented from CachePeer.

Definition at line 82 of file RubberFileSystem.class.php.

References makePath().

Here is the call graph for this function:

RubberFileSystem::store ( action,
key,
&$  value,
expires = 0 
) [protected]

Reimplemented from CachePeer.

Definition at line 93 of file RubberFileSystem.class.php.

References $directory, makePath(), operate(), and CachePeer::replace().

Here is the call graph for this function:

RubberFileSystem::operate ( path,
value = null,
expires = null 
) [private]

Definition at line 133 of file RubberFileSystem.class.php.

References SemaphorePool::me().

Referenced by get(), and store().

Here is the call graph for this function:

RubberFileSystem::makePath ( key  )  [private]

Definition at line 176 of file RubberFileSystem.class.php.

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


Member Data Documentation

RubberFileSystem::$directory = null [private]

Definition at line 20 of file RubberFileSystem.class.php.

Referenced by __construct(), create(), and store().


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:23 2007 for onPHP by  doxygen 1.5.4