class L1 extends LX (View source)

Methods

getEntry(Address $address)

No description

from LX
getHits()

No description

getMisses()

No description

string|null
get(Address $address)

Fetch a value from the cache.

from LX
boolean
exists(Address $address)

Determine whether or not the specified Address exists in the cache.

from LX
collectGarbage($item_limit = null)

No description

from LX
__construct(string $pool, StateL1Interface $state)

Constructor for all the L1 implementations.

getLastAppliedEventID()

No description

setLastAppliedEventID($event_id)

No description

getPool()

No description

set($event_id, Address $address, $value = null, $expiration = null)

No description

isNegativeCache(Address $address)

No description

getKeyOverhead(Address $address)

No description

setWithExpiration($event_id, Address $address, $value, $created, $expiration = null)

No description

delete($event_id, Address $address)

No description

Details

in LX at line line 10
abstract getEntry(Address $address)

Parameters

Address $address

at line line 52
getHits()

at line line 57
getMisses()

in LX at line line 19
string|null get(Address $address)

Fetch a value from the cache.

Parameters

Address $address

Return Value

string|null

in LX at line line 33
boolean exists(Address $address)

Determine whether or not the specified Address exists in the cache.

Parameters

Address $address

Return Value

boolean

in LX at line line 39
collectGarbage($item_limit = null)

Parameters

$item_limit

at line line 21
__construct(string $pool, StateL1Interface $state)

Constructor for all the L1 implementations.

Parameters

string $pool Pool ID to group the cache data in.
StateL1Interface $state State manager class. Used to collect hit/miss statistics as well as the ID of the last cache mutation event.

at line line 27
getLastAppliedEventID()

at line line 32
setLastAppliedEventID($event_id)

Parameters

$event_id

at line line 37
getPool()

at line line 42
set($event_id, Address $address, $value = null, $expiration = null)

Parameters

$event_id
Address $address
$value
$expiration

at line line 47
abstract isNegativeCache(Address $address)

Parameters

Address $address

at line line 48
abstract getKeyOverhead(Address $address)

Parameters

Address $address

at line line 49
abstract setWithExpiration($event_id, Address $address, $value, $created, $expiration = null)

Parameters

$event_id
Address $address
$value
$created
$expiration

at line line 50
abstract delete($event_id, Address $address)

Parameters

$event_id
Address $address