returns the instance of the singleton class
OCSP_CACHE
getInstance
([
string $group =
'DEFAULT'])
returns if the cache type is usable on the system
boolean
isUseable
([boolean $debug = False])
returns a stored value
array
getStoredValueArr
(string $aName)
returns a cached value
mixed
getValue
(string $aName)
sets a value
NOTE the value is stored on destruct
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)
stores all temp cached values
void
storeMyValues
([boolean $debug = False])
removes a value from the cache
void
unsetValue
(string $aName)