class Memory implements CacheInterface (View source)

This is the default implementation for in-memory cell collection.

Alternatives implementation should leverage off-memory, non-volatile storage to reduce overall memory usage.

Methods

clear()

No description

delete($key)

No description

deleteMultiple($keys)

No description

get($key, $default = null)

No description

getMultiple($keys, $default = null)

No description

has($key)

No description

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

No description

setMultiple($values, $ttl = null)

No description

Details

clear()

delete($key)

Parameters

$key

deleteMultiple($keys)

Parameters

$keys

get($key, $default = null)

Parameters

$key
$default

getMultiple($keys, $default = null)

Parameters

$keys
$default

has($key)

Parameters

$key

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

Parameters

$key
$value
$ttl

setMultiple($values, $ttl = null)

Parameters

$values
$ttl