CacheManager
class CacheManager extends AdapterManager
Cache manager.
Traits
Properties
protected string | $default | Name of the default connection. | from ConfigurableTrait |
protected array | $configurations | Configurations. | from ConfigurableTrait |
protected Container | $container | Container. | from AdapterManager |
protected array | $extensions | Extensions. | from AdapterManager |
protected array | $instances | Connections. | from AdapterManager |
protected array|bool | $classWhitelist | Class whitelist. |
Methods
Constructor.
Returns a cache instance.
No description
Magic shortcut to the default configuration.
APCU store factory.
File store factory.
Database store factory.
Memcache store factory.
Memcached store factory.
Memory store factory.
Redis store factory.
Null store factory.
Windows cache store factory.
No description
No description
No description
No description
No description
No description
No description
Details
at line 57
__construct(string $default, array $configurations, Container $container, array|bool $classWhitelist = false)
Constructor.
in ConfigurableTrait at line 48
addConfiguration(string $name, array $configuration)
Adds a configuration.
in ConfigurableTrait at line 59
removeConfiguration(string $name)
Removes a configuration.
It will also remove any active connection linked to the configuration.
in AdapterManager at line 68
extend(string $name, Closure|string $adapter)
Adds extension.
in AdapterManager at line 80
protected mixed
factory(string $adapterName, array $configuration = [])
Factory.
at line 169
protected mixed
instantiate(string $configuration)
Returns a cache instance.
at line 40
StoreInterface
instance($configuration = null)
in AdapterManager at line 134
mixed
__call(string $name, array $arguments)
Magic shortcut to the default configuration.
at line 70
protected APCU
apcuFactory(array $configuration)
APCU store factory.
at line 81
protected File
fileFactory(array $configuration)
File store factory.
at line 92
protected Database
databaseFactory(array $configuration)
Database store factory.
at line 103
protected Memcache
memcacheFactory(array $configuration)
Memcache store factory.
at line 114
protected Memcached
memcachedFactory(array $configuration)
Memcached store factory.
at line 125
protected Memory
memoryFactory(array $configuration)
Memory store factory.
at line 136
protected Redis
redisFactory(array $configuration)
Redis store factory.
at line 147
protected NullStore
nullFactory(array $configuration)
Null store factory.
at line 158
protected WinCache
wincacheFactory(array $configuration)
Windows cache store factory.