APC cache implementation
| copyright | Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland |
|---|---|
| author | Barry O'Donovan |
__construct(int $ttl, string $prefix) : \OSS_SNMP\Cache\Basic
For basic cache, takes no parameters.
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) : 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)$_prefix
$_ttl