class NullCache implements CacheInterface

deprecated since Symfony 4.3, use NullAdapter and type-hint for CacheInterface instead.

Methods

get($key, $default = null)

{@inheritdoc}

getMultiple($keys, $default = null)

{@inheritdoc}

has($key)

{@inheritdoc}

clear()

{@inheritdoc}

delete($key)

{@inheritdoc}

deleteMultiple($keys)

{@inheritdoc}

set($key, $value, $ttl = null)

{@inheritdoc}

setMultiple($values, $ttl = null)

{@inheritdoc}

Details

at line 28
get($key, $default = null)

{@inheritdoc}

Parameters

$key
$default

at line 36
getMultiple($keys, $default = null)

{@inheritdoc}

Parameters

$keys
$default

at line 46
has($key)

{@inheritdoc}

Parameters

$key

at line 54
clear()

{@inheritdoc}

at line 62
delete($key)

{@inheritdoc}

Parameters

$key

at line 70
deleteMultiple($keys)

{@inheritdoc}

Parameters

$keys

at line 78
set($key, $value, $ttl = null)

{@inheritdoc}

Parameters

$key
$value
$ttl

at line 86
setMultiple($values, $ttl = null)

{@inheritdoc}

Parameters

$values
$ttl