class Config_LRU

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

at line 698
__construct()

at line 717
__clone()

at line 731
set($key, $val, $tags = array())

Parameters

$key
$val
$tags

at line 762
stats()

at line 773
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

at line 785
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.

at line 799
clean($tag = null)

Parameters

$tag