CacheFactory
in package
A factory for loading the desired
Tags
Table of Contents
Properties
- $mockClass : string
- The class to use when mocking
- $mockServiceName : string
- The service to inject the mock as
Methods
- getHandler() : CacheInterface
- Attempts to create the desired cache handler, based upon the
Properties
$mockClass
The class to use when mocking
public
static string
$mockClass
= \CodeIgniter\Test\Mock\MockCache::class
$mockServiceName
The service to inject the mock as
public
static string
$mockServiceName
= 'cache'
Methods
getHandler()
Attempts to create the desired cache handler, based upon the
public
static getHandler(Cache $config[, non-empty-string|null $handler = null ][, non-empty-string|null $backup = null ]) : CacheInterface
Parameters
- $config : Cache
- $handler : non-empty-string|null = null
- $backup : non-empty-string|null = null