basic (array) cache implementation
copyright | Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland |
---|---|
author | Barry O'Donovan |
__construct() : \OSS_SNMP\Cache\Basic
\OSS_SNMP\Cache\Basic
An instance of the cache ($this) for fluent interfacesclear(string $var)
string
The name of the value to clear
clearAll()
load(string $var) : mixed | null
string
The name of the value to load
mixed
null
The value from the cache or nullsave(string $var, mixed $val) : mixed
string
The name of the value to save
mixed
The value to save
mixed
The value (as passed)clear($varName)
clearAll()
load($varName)
save($varName, $varValue)
$_cache : array