APC cache implementation
| copyright | Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland |
|---|---|
| author | Barry O'Donovan |
__construct(int $ttl= 300, string $prefix= 'OSS_SNMP_') : \OSS_SNMP\Cache\Basic
intSet the default ttl
stringSet the default prefix for caching variable names
\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, int $ttl = null) : mixed
stringThe name of the value to save
mixedThe value to save
intThe time to live of the variable if you want to override the default
mixedThe value (as passed)clear($varName)
clearAll()
load($varName)
save($varName, $varValue)
$_prefix : string
'OSS_SNMP_'$_ttl : int
300