CacheItemPoolManagerInterface
interface CacheItemPoolManagerInterface implements CacheItemPoolInterface (View source)
Constants
PICK_FIRST |
Select the first (enabled) provider in queue, do not traverse the queue. |
PICK_LAST |
Select the last (enabled) provider in queue, do not traverse the queue. |
PICK_RANDOM |
Select a random (enabled) provider in queue, do not traverse the queue. |
PICK_BYWEIGHT |
Select by weight, stop at first enabled provider. |
PICK_ALL |
Ask to all (enabled) providers and match responses. |
PICK_TRAVERSE |
Select the first (enabled) provider, in case of null response traverse the queue. |
Methods
Get current namespace
Set current namespace
Chear the whole (current) namespace
Add a new provider to the manager's stack
Remove provider from the manager's stack
Get a registered provider
Get registered providers
Get the last selected provider
Get stats from all providers
Details
at line 60
string
getNamespace()
Get current namespace
at line 68
string|null
setNamespace(string $namespace)
Set current namespace
at line 75
string|null
clearNamespace()
Chear the whole (current) namespace
at line 84
int
addProvider(EnhancedCacheItemPoolInterface $provider, int $weight)
Add a new provider to the manager's stack
at line 92
bool
removeProvider(int $id)
Remove provider from the manager's stack
at line 100
EnhancedCacheItemPoolInterface
getProvider(int $id)
Get a registered provider
at line 108
array
getProviders(int $enabled)
Get registered providers
at line 115
EnhancedCacheItemPoolInterface
getSelectedProvider()
Get the last selected provider
at line 122
CacheItemPoolManagerStats
getStats()
Get stats from all providers