Methods summary
public
array
|
|
public
Charcoal\App\Config\CacheConfig
|
#
setTypes( array $types )
Set the types (drivers) of cache.
Set the types (drivers) of cache.
The first cache actually available on the system will be the one used for caching.
Parameters
- $types
- The types of cache to try using, in order of priority.
Returns
|
public
array
|
#
validTypes( )
Get the valid types (drivers).
Get the valid types (drivers).
Returns
array
|
public
Charcoal\App\Config\CacheConfig
|
#
addType( string $type )
Parameters
Returns
Throws
InvalidArgumentException If the type is not a string.
|
public
array
|
|
public
Charcoal\App\Config\CacheConfig
|
#
setDefaultTtl( integer $ttl )
Parameters
- $ttl
- The time-to-live, in seconds.
Returns
Throws
InvalidArgumentException If the TTL argument is not numeric.
|
public
integer
|
|
public
Charcoal\App\Config\CacheConfig
|
#
setPrefix( string $prefix )
Parameters
- $prefix
- The cache prefix (or namespace).
Returns
Throws
InvalidArgumentException If the prefix is not a string.
|
public
string
|
|
public
Charcoal\App\Config\CacheConfig
|
#
setMiddleware( array $middleware )
Parameters
- $middleware
- The cache middleware configuration.
Returns
|
public
array
|
|