| Methods |
public
|
getName(): string
Retrieve the name of this region.
Retrieve the name of this region.
Returns
|
#
|
public
|
contains(CacheKey $key): bool
Determine whether this region contains data for the given key.
Determine whether this region contains data for the given key.
Parameters
Returns
TRUE if the underlying cache contains corresponding data; FALSE otherwise.
|
#
|
public
|
get(CacheKey $key): CacheEntry|null
Get an item from the cache.
Get an item from the cache.
Parameters
| $key |
The key of the item to be retrieved.
|
Returns
Throws
|
#
|
public
|
put(CacheKey $key, CacheEntry $entry, Lock|null $lock = null): bool
Put an item into the cache.
Put an item into the cache.
Parameters
| $key |
The key under which to cache the item.
|
| $entry |
The entry to cache.
|
| $lock |
The lock previously obtained.
|
Throws
|
#
|
public
|
evict(CacheKey $key): bool
Remove an item from the cache.
Remove an item from the cache.
Parameters
| $key |
The key under which to cache the item.
|
Throws
|
#
|
public
|
evictAll(): bool
Remove all contents of this particular cache region.
Remove all contents of this particular cache region.
Throws
|
#
|