mediatekformation

DefaultMultiGetRegion extends DefaultRegion
in package

A cache region that enables the retrieval of multiple elements with one call

Table of Contents

REGION_KEY_SEPARATOR  = '_'
$cache  : MultiGetCache|Cache
Note that the multiple type is due to doctrine/cache not integrating the MultiGetCache interface in its signature due to BC in 1.x
$lifetime  : int
$name  : string
__construct()  : mixed
contains()  : bool
Determine whether this region contains data for the given key.
evict()  : bool
Remove an item from the cache.
evictAll()  : bool
Remove all contents of this particular cache region.
get()  : CacheEntry|null
Get an item from the cache.
getCache()  : CacheProvider
getMultiple()  : mixed
{@inheritdoc}
getName()  : string
Retrieve the name of this region.
put()  : bool
Put an item into the cache.
getCacheEntryKey()  : string

Constants

REGION_KEY_SEPARATOR

public mixed REGION_KEY_SEPARATOR = '_'

Properties

Methods

contains()

Determine whether this region contains data for the given key.

public contains(CacheKey $key) : bool
Parameters
$key : CacheKey

The cache key

Return values
bool

TRUE if the underlying cache contains corresponding data; FALSE otherwise.

evict()

Remove an item from the cache.

public evict(CacheKey $key) : bool
Parameters
$key : CacheKey

The key under which to cache the item.

Return values
bool

evictAll()

Remove all contents of this particular cache region.

public evictAll() : bool
Return values
bool

getName()

Retrieve the name of this region.

public getName() : string
Return values
string

The region name

put()

Put an item into the cache.

public put(CacheKey $key, CacheEntry $entry[, Lock|null $lock = null ]) : bool
Parameters
$key : CacheKey

The key under which to cache the item.

$entry : CacheEntry

The entry to cache.

$lock : Lock|null = null

The lock previously obtained.

Return values
bool

Search results