\Mobi_Mtld_DA_CacheProvider_CacheProviderInterface

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.

Summary

Methods
Constants
get()
set()
delete()
clear()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

get()

get(  $key) : mixed

Get a stored value form cache.

Parameters

$key

Returns

mixed —

the cached value or null if the key does not exist in cache

set()

set(  $key,   $value) 

Store a value in cache.

Parameters

$key
$value

delete()

delete(  $key) 

Remove an item from the cache.

Parameters

$key

clear()

clear() 

Clear the whole cache.