Class SGL_Cache2

Description

SGL wrapper to any third-party cache library.

Currently only PEAR::Cache_Lite and Zend_Cache are supported.

Located in /SGL/Cache2.php (line 10)


	
			
Variable Summary
 static array $_aInstances
Method Summary
 static object &singleton ([array $aOptions = array()], [string $lib = 'Zend_Cache'])
 static object _factory (string $lib, string $frontend, string $backend, array $fOpts, array $bOpts)
 string makeCacheIdFromMethodName (string $methodName, [array $aArgs = array()])
Variables
static array $_aInstances = array() (line 17)

Instances of Cache objects.

  • access: private
Methods
static singleton (line 27)

This method is used to get Cache object instance.

  • access: public
object &singleton ([array $aOptions = array()], [string $lib = 'Zend_Cache'])
  • array $aOptions: cache options
  • string $lib: cache library to use
static _factory (line 63)

Factory method.

  • access: private
object _factory (string $lib, string $frontend, string $backend, array $fOpts, array $bOpts)
  • string $lib: library name
  • string $frontend: frontend name
  • string $backend: backend name
  • array $fOpts: frontend options
  • array $bOpts: backend options
makeCacheIdFromMethodName (line 146)

Make cache ID from method name and it's arguments.

string makeCacheIdFromMethodName (string $methodName, [array $aArgs = array()])
  • string $methodName
  • array $aArgs

Documentation generated on Tue, 23 Feb 2010 18:14:28 +0000 by phpDocumentor 1.4.3