KjwCache Class Reference

FIXME: needs documentation. More...

List of all members.

Public Member Functions

 KjwCache ($cachePath= 'cache')
 expire ($seconds)
 start ()
 setDirty ()
 "delete" .cache files.
 saveCache ()
 store cache files by copying the .cache to .cache.bak.
 loadCache ()
 deletes current .cache files.
 destroy ()

Public Attributes

 $_cachePath = null
 $_cacheFile = null
 $_enabled = false
 $_expire = null


Detailed Description

FIXME: needs documentation.

Definition at line 23 of file KjwCache.php.


Member Function Documentation

KjwCache::loadCache (  ) 

deletes current .cache files.

copies .cache.bak to .cache.

Returns:
amount of files "restored"

Definition at line 128 of file KjwCache.php.

KjwCache::saveCache (  ) 

store cache files by copying the .cache to .cache.bak.

removes old .bak files first, so we know this cache contains only newly cached items.

Returns:
amount of files stored/pushed

Definition at line 109 of file KjwCache.php.

KjwCache::setDirty (  ) 

"delete" .cache files.

. call saveCache first if you plan to undo..

Returns:
amount of files deleted

Definition at line 93 of file KjwCache.php.


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

Generated on Wed Apr 8 22:16:35 2009 for KjwLib-php45 by  doxygen 1.5.8