Class MachII_framework_Cache

Description

Simple Cache Facade

Located in /MachII/framework/Cache.php (line 11)


	
			
Direct descendents
Class Description
MachII_cache_PhpSession A simple cache container that stores to PHP's native session variables.
MachII_cache_DangaMemCachedClient Mach-II cache adapter for Danga MemCachedClient.
MachII_cache_EAccelerator Mach-II cache adapter for eAccelerator.
MachII_cache_TurckMmcache Mach-II cache facade for Turck MMCache.
MachII_cache_ZendAccelerator Mach-II cache adapter for Zend Accelerator's Data Cache.
MachII_cache_PearCacheLite Mach-II cache facade for the file-based PEAR Cache_Lite.
Variable Summary
string $appName
mixed $cache
array $options
Method Summary
MachII_framework_Cache __construct (string $appName, [array $options = array()])
void clear ()
void &createCache ()
mixed &get (string $varName)
string getAppName ()
mixed &getCache ()
void getOption (string $name)
array getOptions ()
void save (string $name, mixed &$value)
void setAppName (string $appName)
void setCache (mixed &$cache)
void setOption (string $name, mixed $value)
void setOptions (array $options)
Variables
string $appName (line 21)
mixed $cache (line 16)
array $options = array() (line 26)
Methods
Constructor __construct (line 36)

Constructor

Generally should be called in the constructor of descendents.

MachII_framework_Cache __construct (string $appName, [array $options = array()])
  • string $appName
  • array $options: associative array of cache options
clear (line 63)

Remove all items in application cache.

  • abstract:
void clear ()

Redefined in descendants as:
createCache (line 69)

Initialize the cache container.

  • abstract:
void &createCache ()

Redefined in descendants as:
get (line 57)

Retrieve a variable.

  • abstract:
mixed &get (string $varName)
  • string $varName

Redefined in descendants as:
getAppName (line 98)
string getAppName ()
getCache (line 82)
mixed &getCache ()
getOption (line 132)
void getOption (string $name)
  • string $name: return mixed
getOptions (line 114)
array getOptions ()
save (line 49)

Store a variable.

  • abstract:
void save (string $name, mixed &$value)
  • string $name
  • mixed &$value

Redefined in descendants as:
setAppName (line 90)
void setAppName (string $appName)
  • string $appName
setCache (line 74)
void setCache (mixed &$cache)
  • mixed &$cache
setOption (line 123)
void setOption (string $name, mixed $value)
  • string $name
  • mixed $value
setOptions (line 106)
void setOptions (array $options)
  • array $options

Documentation generated on Thu, 20 Jan 2005 10:46:53 -0800 by phpDocumentor 1.3.0RC3