$middleware
$middleware : array
Cache Configuration
setTypes(array<mixed,string> $types) : \Charcoal\App\Config\CacheConfig
Set the types (drivers) of cache.
The first cache actually available on the system will be the one used for caching.
array<mixed,string> | $types | The types of cache to try using, in order of priority. |
Chainable
addType(string $type) : \Charcoal\App\Config\CacheConfig
string | $type | The cache type. |
If the type is not a string.
Chainable
setDefaultTtl(integer $ttl) : \Charcoal\App\Config\CacheConfig
integer | $ttl | The time-to-live, in seconds. |
If the TTL argument is not numeric.
Chainable
setPrefix(string $prefix) : \Charcoal\App\Config\CacheConfig
string | $prefix | The cache prefix (or namespace). |
If the prefix is not a string.
Chainable
setMiddleware(array $middleware) : \Charcoal\App\Config\CacheConfig
array | $middleware | The cache middleware configuration. |
Chainable