Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
FileCache Class Reference
Inheritance diagram for FileCache:

Public Member Functions

 FileCache ($context, $cacheId, $fallback, $path)
 flush ()
 getCache ($id)
 getCacheTime ()
getContents ()
 setCache ($id, $value)
 setEntireCache (&$contents)
- Public Member Functions inherited from GenericCache
 close ()
 flush ()
 GenericCache ($context, $cacheId, $fallback)
 get ($id)
 getCache ($id)
 getCacheId ()
 getCacheTime ()
 getContext ()
 set ($id, $value)
 setCache ($id, $value)
 setEntireCache (&$contents)

Public Attributes

- Public Attributes inherited from GenericCache

Detailed Description

Provides caching based on machine-generated PHP code on the filesystem.

Definition at line 24 of file

Member Function Documentation

FileCache::FileCache (   $context,

Instantiate a cache.

Definition at line 38 of file

References GenericCache\$cacheId, GenericCache\$context, and GenericCache\$fallback.

FileCache::flush ( )

Flush the cache

Definition at line 54 of file

Referenced by setCache().

FileCache::getCache (   $id)

Get an object from the cache.


Definition at line 66 of file

FileCache::getCacheTime ( )

Get the time at which the data was cached. If the file does not exist or an error occurs, null is returned.


Definition at line 107 of file

& FileCache::getContents ( )

Get the entire contents of the cache in an associative array.

Definition at line 117 of file

References $cache.

FileCache::setCache (   $id,

Set an object in the cache. This function should be overridden by subclasses.


Definition at line 77 of file

References flush().

FileCache::setEntireCache ( $contents)

Set the entire contents of the cache.

Definition at line 85 of file

References Config\getVar().

Member Data Documentation


The cached data

Definition at line 33 of file

Referenced by getContents().


Connection to use for caching.

Definition at line 28 of file

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