onPHP

RubberFileSystem Class Reference

 

RubberFileSystem Class Reference
[Application-wide cache subsystem]

Simple filesystem cache. More...

Inheritance diagram for RubberFileSystem:

List of all members.

Public Member Functions

 __construct ($directory= 'cache/')
 isAlive ()
 clean ()
 increment ($key, $value)
 decrement ($key, $value)
 get ($key)
 delete ($key)
 append ($key, $data)

Static Public Member Functions

static create ($directory= 'cache/')

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.

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:
RubberFileSystem

Reimplemented from CachePeer.

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

References FileUtils::removeDirectory().

Here is the call graph for this function:

RubberFileSystem::increment ( key,
value 
)

Reimplemented from CachePeer.

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

References makePath(), and operate().

Here is the call graph for this function:

RubberFileSystem::decrement ( key,
value 
)

Reimplemented from CachePeer.

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

References makePath(), and operate().

Here is the call graph for this function:

RubberFileSystem::get ( key  ) 

Reimplemented from CachePeer.

Definition at line 93 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 114 of file RubberFileSystem.class.php.

References makePath().

Here is the call graph for this function:

RubberFileSystem::append ( key,
data 
)

Reimplemented from CachePeer.

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

References $directory, and makePath().

Here is the call graph for this function:

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

Reimplemented from CachePeer.

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

References $directory, makePath(), and operate().

Here is the call graph for this function:

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

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

References Assert::isUnreachable(), SemaphorePool::me(), CachePeer::prepareData(), and CachePeer::restoreData().

Referenced by decrement(), get(), increment(), and store().

Here is the call graph for this function:

RubberFileSystem::makePath ( key  )  [private]

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

Referenced by append(), decrement(), delete(), get(), increment(), and store().


Member Data Documentation

RubberFileSystem::$directory = null [private]

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

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


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

generated by doxygen-1.5.5
for onPHP at Thu Aug 7 18:22:23 2008