Documentation

LRUCache
in package
implements Cache

Least recently used in-memory cache.

Tags
author

DeviceAtlas Limited

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_REMOVE_FACTOR

private static mixed $CACHE_REMOVE_FACTOR = 0.5

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

        
On this page

Search results