class Config_LRU (View source)

deprecated 4.0

Constants

SIZE

Methods

__construct()

No description

__clone()

No description

set($key, $val, $tags = array())

No description

stats()

No description

variant
get(string $key)

Return a cached value in the case of a hit, false otherwise.

array
checkAndGet(string $key)

Checks for a cache hit and looks up the value by returning multiple values.

clean($tag = null)

No description

Details

__construct()

__clone()

set($key, $val, $tags = array())

Parameters

$key
$val
$tags

stats()

variant get(string $key)

Return a cached value in the case of a hit, false otherwise.

For a more robust cache checking, use {@link checkAndGet()}

Parameters

string $key

The cache key

Return Value

variant

Cached value, if hit. False otherwise

array checkAndGet(string $key)

Checks for a cache hit and looks up the value by returning multiple values.

Distinguishes a cached 'false' value from a cache miss.

Parameters

string $key

The cache key

Return Value

array

First element boolean, isHit. Second element the actual result.

clean($tag = null)

Parameters

$tag