DatabaseCacheUtil
in package
Table of Contents
Constants
- DEFAULT_MAX_CACHE_TIME = ['unit' => 'd', 'value' => 1]
Properties
- $container : ContainerInterface
- $database : Database
- $framework : ContaoFrameworkInterface
Methods
- __construct() : mixed
- cacheValue() : bool
- Store a given value to cache.
- getValue() : mixed
- Retrieve a value from cache.
- keyExists() : bool
- Check for a given cache key.
Constants
DEFAULT_MAX_CACHE_TIME
public
mixed
DEFAULT_MAX_CACHE_TIME
= ['unit' => 'd', 'value' => 1]
Properties
$container
protected
ContainerInterface
$container
$database
protected
Database
$database
$framework
protected
ContaoFrameworkInterface
$framework
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
cacheValue()
Store a given value to cache.
public
cacheValue(string $key, mixed $value) : bool
Parameters
- $key : string
- $value : mixed
Tags
Return values
boolgetValue()
Retrieve a value from cache.
public
getValue(string $key) : mixed
Parameters
- $key : string
keyExists()
Check for a given cache key.
public
keyExists(string $key) : bool
Parameters
- $key : string