CacheController
class CacheController mixin Cache
Public cache handler
Properties
Cache
Since: 1.7.0
|
$cache | Cache object |
|
array
Since: 1.7.0
|
$options | Array of options |
Methods
Constructor
Magic method to proxy CacheController method calls to Cache
Returns a reference to a cache adapter object, always creating it
Add a directory where Cache should search for controllers. You may either pass a string or an array of directories.
Details
mixed
__call(string $name, array $arguments)
Magic method to proxy CacheController method calls to Cache
static CacheController
getInstance(string $type = 'output', array $options = [])
deprecated
deprecated 4.2 will be removed in 6.0 Use the cache controller factory instead Example: Factory::getContainer()->get(CacheControllerFactoryInterface::class)->createCacheController($type, $options);
Returns a reference to a cache adapter object, always creating it
static array
addIncludePath(array|string $path = '')
deprecated
deprecated 4.2 will be removed in 6.0 Use the cache controller factory instead Example: Factory::getContainer()->get(CacheControllerFactoryInterface::class)->createCacheController($type, $options);
Add a directory where Cache should search for controllers. You may either pass a string or an array of directories.