class CacheManager implements Factory (View source)

Methods

void
__construct( Application $app)

Create a new Cache manager instance.

mixed
store( string|null $name = null)

Get a cache store instance by name.

mixed
driver( string $driver = null)

Get a cache driver instance.

repository( Store $store)

Create a new cache repository with the given implementation.

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

at line line 40
void __construct( Application $app)

Create a new Cache manager instance.

Parameters

Application $app

Return Value

void

at line line 51
mixed store( string|null $name = null)

Get a cache store instance by name.

Parameters

string|null $name

Return Value

mixed

at line line 64
mixed driver( string $driver = null)

Get a cache driver instance.

Parameters

string $driver

Return Value

mixed

at line line 217
Repository repository( Store $store)

Create a new cache repository with the given implementation.

Parameters

Store $store

Return Value

Repository

at line line 257
string getDefaultDriver()

Get the default cache driver name.

Return Value

string

at line line 268
void setDefaultDriver( string $name)

Set the default cache driver name.

Parameters

string $name

Return Value

void

at line line 280
$this extend( string $driver, Closure $callback)

Register a custom driver creator Closure.

Parameters

string $driver
Closure $callback

Return Value

$this

at line line 294
mixed __call( string $method, array $parameters)

Dynamically call the default driver instance.

Parameters

string $method
array $parameters

Return Value

mixed