class NullL1 extends StaticL1 (View source)

Methods

getEntry(Address $address)

No description

from StaticL1
getHits()

No description

from L1
getMisses()

No description

from L1
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.

from StaticL1
getLastAppliedEventID()

No description

setLastAppliedEventID($event_id)

No description

from L1
getPool()

No description

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

No description

from L1
isNegativeCache(Address $address)

No description

from StaticL1
getKeyOverhead(Address $address)

No description

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

No description

delete($event_id, Address $address)

No description

from StaticL1

Details

in StaticL1 at line line 63
getEntry(Address $address)

Parameters

Address $address

in L1 at line line 52
getHits()

in L1 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

in StaticL1 at line line 14
__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 13
getLastAppliedEventID()

in L1 at line line 32
setLastAppliedEventID($event_id)

Parameters

$event_id

in L1 at line line 37
getPool()

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

Parameters

$event_id
Address $address
$value
$expiration

in StaticL1 at line line 57
isNegativeCache(Address $address)

Parameters

Address $address

in StaticL1 at line line 26
getKeyOverhead(Address $address)

Parameters

Address $address

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

Parameters

$event_id
Address $address
$value
$created
$expiration

in StaticL1 at line line 90
delete($event_id, Address $address)

Parameters

$event_id
Address $address