CacheManager
Implements
Properties
$stores array
The array of resolved cache stores.
$customCreators array
The registered custom driver creators.
Methods
store ( $name ) : Repository
Get a cache store instance by name, wrapped in a repository.
Parameters
- $name string|null
get ( $name ) : Repository
Attempt to get the store from the local cache.
Parameters
- $name string
callCustomCreator ( array $config ) : mixed
Call a custom driver creator.
Parameters
- $config array
createApcDriver ( array $config ) : Repository
Create an instance of the APC cache driver.
Parameters
- $config array
createArrayDriver ( array $config ) : Repository
Create an instance of the array cache driver.
Parameters
- $config array
createFileDriver ( array $config ) : Repository
Create an instance of the file cache driver.
Parameters
- $config array
createMemcachedDriver ( array $config ) : Repository
Create an instance of the Memcached cache driver.
Parameters
- $config array
createRedisDriver ( array $config ) : Repository
Create an instance of the Redis cache driver.
Parameters
- $config array
createDatabaseDriver ( array $config ) : Repository
Create an instance of the database cache driver.
Parameters
- $config array
createDynamodbDriver ( array $config ) : Repository
Create an instance of the DynamoDB cache driver.
Parameters
- $config array
newDynamodbClient ( array $config ) : Aws\...\DynamoDbClient
Create new DynamoDb Client instance.
repository ( Store $store ) : Repository
Create a new cache repository with the given implementation.
Parameters
- $store Store
setEventDispatcher ( Repository $repository ) : void
Set the event dispatcher on the given repository instance.
Parameters
- $repository Repository
refreshEventDispatcher ( ) : void
Re-set the event dispatcher on all resolved cache repositories.
getPrefix ( array $config ) : string
Get the cache prefix.
Parameters
- $config array
getConfig ( $name ) : array
Get the cache connection configuration.
Parameters
- $name string
getDefaultDriver ( ) : string
Get the default cache driver name.
setDefaultDriver ( $name ) : void
Set the default cache driver name.
Parameters
- $name string
forgetDriver ( $name ) : $this
Unset the given driver instances.
Parameters
- $name array|string|null
purge ( $name ) : void
Disconnect the given driver and remove from local cache.
Parameters
- $name string|null
extend ( $driver , Closure $callback ) : $this
Register a custom driver creator Closure.
Parameters
- $driver string
- $callback Closure
__call ( $method , $parameters ) : mixed
Dynamically call the default driver instance.
Parameters
- $method string
- $parameters array