Documentation

LRUCache
in package
implements Cache

Least recently used in-memory cache.

Tags
author

DeviceAtlas Limited

Interfaces, Classes, Traits and Enums

Cache
Cache interface for the DeviceAtlas APIs.

Table of Contents

$cache  : mixed
$CACHE_REMOVE_FACTOR  : mixed
$cacheSize  : mixed
__construct()  : mixed
get()  : mixed
put()  : mixed

Properties

$CACHE_REMOVE_FACTOR

private static mixed $CACHE_REMOVE_FACTOR = 0.5

Methods

__construct()

public __construct(mixed $cacheSize) : mixed
Parameters
$cacheSize : mixed
Return values
mixed

get()

public get(mixed $key) : mixed
Parameters
$key : mixed
Return values
mixed

put()

public put(mixed $key, mixed $value) : mixed
Parameters
$key : mixed
$value : mixed
Return values
mixed

        

Search results