Mobi_Mtld_DA_CacheProvider_CacheProviderInterface
in
A cache provider such as APC or Memcache 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. A valid cache provider must implement this interface to be usable by the APIs.
Tags
Table of Contents
- clear() : mixed
- Clear the whole cache.
- delete() : mixed
- Remove an item from the cache.
- get() : mixed
- Get a stored value form cache.
- set() : mixed
- Store a value in cache.
Methods
clear()
Clear the whole cache.
public
clear() : mixed
Return values
mixed —delete()
Remove an item from the cache.
public
delete(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —get()
Get a stored value form cache.
public
get(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —the cached value or null if the key does not exist in cache
set()
Store a value in cache.
public
set(mixed $key, mixed $value) : mixed
Parameters
- $key : mixed
- $value : mixed