class CacheManager implements Factory mixin Repository mixin LockProvider (View source)
| protected Application | $app | The application instance. | |
| protected array | $stores | The array of resolved cache stores. | |
| protected array | $customCreators | The registered custom driver creators. |
| void | __construct(Application $app)
Create a new Cache manager instance. | |
| Repository | store(string|null $name = null)
Get a cache store instance by name, wrapped in a repository. | |
| Repository | driver(string|null $driver = null)
Get a cache driver instance. | |
| Repository | resolve(string $name)
Resolve the given store. | |
| mixed | callCustomCreator(array $config)
Call a custom driver creator. | |
| Repository | createApcDriver(array $config)
Create an instance of the APC cache driver. | |
| Repository | createArrayDriver(array $config)
Create an instance of the array cache driver. | |
| Repository | createFileDriver(array $config)
Create an instance of the file cache driver. | |
| Repository | createMemcachedDriver(array $config)
Create an instance of the Memcached cache driver. | |
| Repository | createNullDriver()
Create an instance of the Null cache driver. | |
| Repository | createRedisDriver(array $config)
Create an instance of the Redis cache driver. | |
| Repository | createDatabaseDriver(array $config)
Create an instance of the database cache driver. | |
| Repository | createDynamodbDriver(array $config)
Create an instance of the DynamoDB cache driver. | |
| DynamoDbClient | newDynamodbClient(array $config)
Create new DynamoDb Client instance. | |
| Repository | repository(Store $store, array $config = [])
Create a new cache repository with the given implementation. | |
| void | setEventDispatcher(Repository $repository)
Set the event dispatcher on the given repository instance. | |
| void | refreshEventDispatcher()
Re-set the event dispatcher on all resolved cache repositories. | |
| string | getPrefix(array $config)
Get the cache prefix. | |
| array|null | getConfig(string $name)
Get the cache connection configuration. | |
| string | getDefaultDriver()
Get the default cache driver name. | |
| void | setDefaultDriver(string $name)
Set the default cache driver name. | |
| $this | forgetDriver(array|string|null $name = null)
Unset the given driver instances. | |
| void | purge(string|null $name = null)
Disconnect the given driver and remove from local cache. | |
| $this | extend(string $driver, Closure $callback)
Register a custom driver creator Closure. | |
| $this | setApplication(Application $app)
Set the application instance used by the manager. | |
| mixed | __call(string $method, array $parameters)
Dynamically call the default driver instance. |
Create a new Cache manager instance.
Get a cache store instance by name, wrapped in a repository.
Get a cache driver instance.
Resolve the given store.
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.
Register a custom driver creator Closure.
Set the application instance used by the manager.
Dynamically call the default driver instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Cache/CacheManager.html