Contao Utils Bundle

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

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
throws
Exception
Return values
bool

getValue()

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
Return values
bool

        
On this page

Search results