Class xPDOFileCache

Description

A simple file-based caching implementation using executable PHP.

This can be used to relieve database loads, though the overall performance is about the same as without the file-based cache. For maximum performance and scalability, use a server with memcached and the PHP memcache extension configured.

Located in /xpdo/cache/xpdocachemanager.class.php (line 841)

xPDOCache
   |
   --xPDOFileCache
Method Summary
 xPDOFileCache __construct ( &$xpdo, [ $options = array()])
 void add ( $key,  $var, [ $expire = 0], [ $options = array()])
 void delete ( $key, [ $options = array()])
 void flush ([ $options = array()])
 void get ( $key, [ $options = array()])
 void getCacheKey ( $key, [ $options = array()])
 void replace ( $key,  $var, [ $expire = 0], [ $options = array()])
 void set ( $key,  $var, [ $expire = 0], [ $options = array()])
Variables
Methods
Constructor __construct (line 842)
  • access: public
xPDOFileCache __construct ( &$xpdo, [ $options = array()])
  • &$xpdo
  • $options

Redefinition of:
xPDOCache::__construct()
add (line 854)
  • access: public
void add ( $key,  $var, [ $expire = 0], [ $options = array()])
  • $key
  • $var
  • $expire
  • $options

Redefinition of:
xPDOCache::add()
Adds a value to the cache.
delete (line 895)
  • access: public
void delete ( $key, [ $options = array()])
  • $key
  • $options

Redefinition of:
xPDOCache::delete()
Deletes a value from the cache.
flush (line 925)
  • access: public
void flush ([ $options = array()])
  • $options

Redefinition of:
xPDOCache::flush()
Flush all values from the cache.
get (line 909)
  • access: public
void get ( $key, [ $options = array()])
  • $key
  • $options

Redefinition of:
xPDOCache::get()
Gets a value from the cache.
getCacheKey (line 847)
  • access: public
void getCacheKey ( $key, [ $options = array()])
  • $key
  • $options

Redefinition of:
xPDOCache::getCacheKey()
Get the actual cache key the implementation will use.
replace (line 885)
  • access: public
void replace ( $key,  $var, [ $expire = 0], [ $options = array()])
  • $key
  • $var
  • $expire
  • $options

Redefinition of:
xPDOCache::replace()
Replaces a value in the cache.
set (line 864)
  • access: public
void set ( $key,  $var, [ $expire = 0], [ $options = array()])
  • $key
  • $var
  • $expire
  • $options

Redefinition of:
xPDOCache::set()
Sets a value in the cache.

Inherited Methods

Inherited From xPDOCache

 xPDOCache::__construct()
 xPDOCache::add()
 xPDOCache::delete()
 xPDOCache::flush()
 xPDOCache::get()
 xPDOCache::getCacheKey()
 xPDOCache::getOption()
 xPDOCache::isInitialized()
 xPDOCache::replace()
 xPDOCache::set()

Documentation generated on Fri, 17 Jun 2011 10:04:06 -0600 by phpDocumentor 1.4.3