CacheManager
class CacheManager implements Factory (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
| void |  __construct(Application $app)  Create a new Cache manager instance.  |  |
| Repository |  store(string|null $name = null)  Get a cache store instance by name.  |  |
| mixed |  driver(string $driver = null)  Get a cache driver instance.  |  |
| Repository |  get(string $name)  Attempt to get the store from the local cache.  |  |
| Repository |  resolve(string $name)  Resolve the given store.  |  |
| mixed |  callCustomCreator(array $config)  Call a custom driver creator.  |  |
| ApcStore |  createApcDriver(array $config)  Create an instance of the APC cache driver.  |  |
| ArrayStore |  createArrayDriver()  Create an instance of the array cache driver.  |  |
| FileStore |  createFileDriver(array $config)  Create an instance of the file cache driver.  |  |
| MemcachedStore |  createMemcachedDriver(array $config)  Create an instance of the Memcached cache driver.  |  |
| NullStore |  createNullDriver()  Create an instance of the Null cache driver.  |  |
| RedisStore |  createRedisDriver(array $config)  Create an instance of the Redis cache driver.  |  |
| DatabaseStore |  createDatabaseDriver(array $config)  Create an instance of the database cache driver.  |  |
| Repository |  repository(Store $store)  Create a new cache repository with the given implementation.  |  |
| string |  getPrefix(array $config)  Get the cache prefix.  |  |
| array |  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 |  extend(string $driver, Closure $callback)  Register a custom driver creator Closure.  |  |
| mixed |  __call(string $method, array $parameters)  Dynamically call the default driver instance.  |  
Details
void __construct(Application $app)
Create a new Cache manager instance.
Repository store(string|null $name = null)
Get a cache store instance by name.
mixed driver(string $driver = null)
Get a cache driver instance.
protected Repository get(string $name)
Attempt to get the store from the local cache.
protected Repository resolve(string $name)
Resolve the given store.
protected mixed callCustomCreator(array $config)
Call a custom driver creator.
protected ApcStore createApcDriver(array $config)
Create an instance of the APC cache driver.
protected ArrayStore createArrayDriver()
Create an instance of the array cache driver.
protected FileStore createFileDriver(array $config)
Create an instance of the file cache driver.
protected MemcachedStore createMemcachedDriver(array $config)
Create an instance of the Memcached cache driver.
protected NullStore createNullDriver()
Create an instance of the Null cache driver.
protected RedisStore createRedisDriver(array $config)
Create an instance of the Redis cache driver.
protected DatabaseStore createDatabaseDriver(array $config)
Create an instance of the database cache driver.
Repository repository(Store $store)
Create a new cache repository with the given implementation.
protected string getPrefix(array $config)
Get the cache prefix.
protected array 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 extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
mixed __call(string $method, array $parameters)
Dynamically call the default driver instance.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/5.5/Illuminate/Cache/CacheManager.html