CacheManager
class CacheManager implements Factory mixin Repository mixin LockProvider (View source)
Properties
protected Application | $app | The application instance. |
|
protected array | $stores | The array of resolved cache stores. |
|
protected array | $customCreators | The registered custom driver creators. |
Methods
Get a cache store instance by name, wrapped in a repository.
Get a cache driver instance.
Resolve the given store.
Build a cache repository with the given configuration.
Call a custom driver creator.
Create an instance of the APC cache driver.
Create an instance of the array cache driver.
Create an instance of the file cache driver.
Create an instance of the Memcached cache driver.
Create an instance of the Null cache driver.
Create an instance of the Redis cache driver.
Create an instance of the database cache driver.
Create an instance of the DynamoDB cache driver.
Create new DynamoDb Client instance.
Create a new cache repository with the given implementation.
Set the event dispatcher on the given repository instance.
Re-set the event dispatcher on all resolved cache repositories.
Get the cache prefix.
Get the cache connection configuration.
Get the default cache driver name.
Set the default cache driver name.
Unset the given driver instances.
Disconnect the given driver and remove from local cache.
Dynamically call the default driver instance.
Details
Repository
store(string|null $name = null)
Get a cache store instance by name, wrapped in a repository.
protected Repository
createMemcachedDriver(array $config)
Create an instance of the Memcached cache driver.
protected Repository
createDatabaseDriver(array $config)
Create an instance of the database cache driver.
protected Repository
createDynamodbDriver(array $config)
Create an instance of the DynamoDB cache driver.
Repository
repository(Store $store, array $config = [])
Create a new cache repository with the given implementation.
protected void
setEventDispatcher(Repository $repository)
Set the event dispatcher on the given repository instance.