Documentation

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.

Tags
author

DeviceAtlas Limited

copyright

Copyright (c) DeviceAtlas Limited 2021. All Rights Reserved. https://deviceatlas.com

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

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
Tags
value

mixed value value to be set to the cache key

Return values
mixed

Search results