Manager
class Manager extends AbstractProvider implements CacheItemPoolManagerInterface (View source)
Traits
Constants
DEFAULT_PICK_MODE |
|
Properties
protected LoggerInterface | $logger | Current logger | from AbstractProvider |
protected string | $namespace | Determine the current cache scope (default: GLOBAL) | from NamespaceTrait |
protected | $pick_mode | ||
protected | $stack | ||
protected | $align_cache | ||
protected | $vacuum | ||
protected | $selected |
Methods
__construct($pick_mode = null, LoggerInterface $logger = null, $align_cache = true, $flap_interval = null)
Class constructor
getItem($key)
{@inheritdoc}
hasItem($key)
{@inheritdoc}
deleteItem($key)
{@inheritdoc}
save(CacheItemInterface $item)
{@inheritdoc}
int
addProvider(EnhancedCacheItemPoolInterface $provider, int $weight = 0)
Add a new provider to the manager's stack
static
createFromConfiguration(Configuration $configuration, LoggerInterface $logger, $stanza = null)
No description
selectFrom($mode, $key)
No description
fromSingleProvider($mode, $key)
No description
fromAllProviders($mode, $key)
No description
traverse($mode, $key)
No description
Details
at line 54
__construct($pick_mode = null, LoggerInterface $logger = null, $align_cache = true, $flap_interval = null)
Class constructor
in AbstractProvider at line 48
getLogger()
{@inheritdoc}
in AbstractProvider at line 57
setLogger(LoggerInterface $logger = null)
{@inheritdoc}
at line 84
getItem($key)
{@inheritdoc}
getItems(array $keys = [])
at line 90
hasItem($key)
{@inheritdoc}
in GenericManagerTrait at line 53
clear()
at line 96
deleteItem($key)
{@inheritdoc}
deleteItems(array $keys)
at line 116
save(CacheItemInterface $item)
{@inheritdoc}
saveDeferred(CacheItemInterface $item)
commit()
in NamespaceTrait at line 34
getNamespace()
{@inheritdoc}
in GenericManagerTrait at line 67
setNamespace($namespace = null)
in GenericManagerTrait at line 21
genericAddProvider($provider, $weight = 0)
in GenericManagerTrait at line 29
removeProvider($id)
in GenericManagerTrait at line 35
getProvider($id)
in GenericManagerTrait at line 41
getProviders($enabled = false)
in GenericManagerTrait at line 47
getSelectedProvider()
in GenericManagerTrait at line 79
clearNamespace()
in GenericManagerTrait at line 91
getStats()
in GenericManagerTrait at line 103
protected
selectProvider()
at line 78
int
addProvider(EnhancedCacheItemPoolInterface $provider, int $weight = 0)
Add a new provider to the manager's stack