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\BasicAn instance of the cache ($this) for fluent interfacesclear(string $var)
stringThe name of the value to clear
clearAll()
load(string $var) : mixed | null
stringThe name of the value to load
mixednullThe value from the cache or nullsave(string $var, mixed $val) : mixed
stringThe name of the value to save
mixedThe value to save
mixedThe value (as passed)clear($varName)
clearAll()
load($varName)
save($varName, $varValue)
$_cache : array