LRUCache
in package
implements
Cache
Least recently used in-memory cache.
Tags
Table of Contents
Interfaces
- Cache
- Cache interface for the DeviceAtlas APIs.
Properties
- $cache : mixed
- $CACHE_REMOVE_FACTOR : mixed
- $cacheSize : mixed
Methods
- __construct() : mixed
- get() : mixed
- put() : mixed
Properties
$cache
private
mixed
$cache
$CACHE_REMOVE_FACTOR
private
static mixed
$CACHE_REMOVE_FACTOR
= 0.5
$cacheSize
private
mixed
$cacheSize
Methods
__construct()
public
__construct(mixed $cacheSize) : mixed
Parameters
- $cacheSize : mixed
get()
public
get(mixed $key) : mixed
Parameters
- $key : mixed
put()
public
put(mixed $key, mixed $value) : mixed
Parameters
- $key : mixed
- $value : mixed