Abstract Class OCSP_CACHE

Description

Implements interfaces:

openCSP abstract class OCSP_CACHE

uses the singleton design pattern

Located in /cache/OCSP_CACHE.phpclass (line 38)


	
			
Direct descendents
Class Description
 class OCSP_CACHE_APC openCSP class OCSP_CACHE_APC
 class OCSP_CACHE_FILE openCSP class OCSP_CACHE_FILE
Variable Summary
 static mixed $cacheInstances
 string $myGroup
 array $myValues
Method Summary
 OCSP_CACHE __construct (string $group)
 void __destruct ()
 mixed getValue (string $aName, [boolean $debug = False])
 void setValue (string $aName, mixed $aValue, [mixed $ttl = 0], [boolean $autotouch = False])
Variables
static mixed $cacheInstances = array() (line 48)

array holding the instances of the implementation

  • staticvar: array $cacheInstances:
  • access: protected
string $myGroup = 'DEFAULT' (line 57)
  • access: protected
array $myValues = array() (line 73)

array of values currently loaded in the memory

array keys:

  • 'VAL' => (mixed) the value to cache
  • 'TTL' => (int) time to life of the cached value
  • 'EXP' => (timestamp) the value expires
  • 'TOU' => (boolean) touch the value on a read
  • 'CHA' => (boolean) the value has changed

  • access: protected
Methods
Constructor __construct (line 82)

constructor

  • access: public
OCSP_CACHE __construct (string $group)
  • string $group
Destructor __destruct (line 90)

store all values on destruct

  • access: public
void __destruct ()
getValue (line 105)

returns a cached value

  • access: public
mixed getValue (string $aName, [boolean $debug = False])
  • string $aName
  • boolean $debug

Implementation of:
INFA_OCSP_CACHE::getValue()
returns a cached value
setValue (line 157)

sets a value

NOTE the value is stored on destruct

  • access: public
void setValue (string $aName, mixed $aValue, [mixed $ttl = 0], [boolean $autotouch = False])
  • string $aName
  • mixed $aValue
  • mixed $ttl
  • boolean $autotouch: (if true ttl will be expanded on every use of the value)

Implementation of:
INFA_OCSP_CACHE::setValue()
sets a value

Documentation generated on Thu, 08 Jan 2009 17:45:10 +0100 by phpDocumentor 1.4.0a2