class Config_LRU (View source)

deprecated 4.0

Constants

SIZE

Properties

protected $cache
protected $indexing
protected $i
protected $c

Methods

public
__construct()

No description

public
__clone()

No description

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

No description

public
stats()

No description

public
variant
get(string $key)

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

public
array
checkAndGet(string $key)

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

public
clean($tag = null)

No description

Details

__construct()

No description

__clone()

No description

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

No description

Parameters

$key
$val
$tags

stats()

No description

variant get(string $key)

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

For a more robust cache checking, use 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)

No description

Parameters

$tag