\Mobi_Mtld_DA_CacheProvider_ApcCacheProvider

APC 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.

Summary

Methods
Properties
Constants
__construct()
get()
set()
delete()
clear()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$cacheItemExpiry
N/A

Properties

$cacheItemExpiry

$cacheItemExpiry : 

Type

Methods

__construct()

__construct(  $cacheItemExpiry = 86400) 

Construct a CacheProvider object.

Parameters

$cacheItemExpiry

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) : boolean

Store a value in cache.

Parameters

$key
$value

Returns

boolean —

true=cache stored

delete()

delete(  $key) : boolean

Remove an item from the cache.

Parameters

$key

Returns

boolean —

true=cache deleted

clear()

clear() : boolean

Clear the whole cache.

Returns

boolean —

true=cache cleared