IS_MEMCACHE
IS_MEMCACHE = 1
Memcache cache provider may be used by the DeviceApi and DeviceApiWeb to cache the detected properties. Using cache improves the performance by not doing unnecessary lookups in the data files.
__construct( $cacheItemExpiry = 86400, $host = 'localhost', $port = 11211, $pconnect = false)
Construct a CacheProvider object.
| $cacheItemExpiry | ||
| $host | ||
| $port | ||
| $pconnect |
get( $key) : mixed
Get a stored value form cache.
| $key |
the cached value or null if the key does not exist in cache
put( $key, $value) : boolean
Store a value in cache.
| $key | ||
| $value |
true=cache stored
delete( $key) : boolean
Remove an item from the cache.
| $key |
true=cache deleted
clear() : boolean
Clear the whole cache.
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275true=cache cleared