class MemcachedCache extends AbstractCache

Traits

LoggerAwareTrait

Methods

hasItem($key)

{@inheritdoc}

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

deleteItems(array $keys)

{@inheritdoc}

static 
handleUnserializeCallback($class)

No description

get($key, $default = null)

{@inheritdoc}

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

{@inheritdoc}

getMultiple($keys, $default = null)

{@inheritdoc}

setMultiple($values, $ttl = null)

{@inheritdoc}

deleteMultiple($keys)

{@inheritdoc}

static 
isSupported()

No description

static Memcached
createConnection(array[]|string|string[] $servers, array $options = array())

Creates a Memcached instance.

__construct(Memcached $client, string $namespace = '', int $defaultLifetime)

No description

Details

in AbstractTrait at line line 83
hasItem($key)

{@inheritdoc}

Parameters

$key

in AbstractTrait at line line 103
clear()

{@inheritdoc}

in AbstractTrait at line line 119
deleteItem($key)

{@inheritdoc}

Parameters

$key

in AbstractTrait at line line 127
deleteItems(array $keys)

{@inheritdoc}

Parameters

array $keys

in AbstractTrait at line line 205
static handleUnserializeCallback($class)

Parameters

$class

in AbstractCache at line line 49
get($key, $default = null)

{@inheritdoc}

Parameters

$key
$default

in AbstractCache at line line 67
set($key, $value, $ttl = null)

{@inheritdoc}

Parameters

$key
$value
$ttl

in AbstractCache at line line 77
getMultiple($keys, $default = null)

{@inheritdoc}

Parameters

$keys
$default

in AbstractCache at line line 103
setMultiple($values, $ttl = null)

{@inheritdoc}

Parameters

$values
$ttl

in AbstractCache at line line 139
deleteMultiple($keys)

{@inheritdoc}

Parameters

$keys

in MemcachedTrait at line line 33
static isSupported()

in MemcachedTrait at line line 69
static Memcached createConnection(array[]|string|string[] $servers, array $options = array())

Creates a Memcached instance.

By default, the binary protocol, no block, and libketama compatible options are enabled.

Examples for servers: - 'memcached://user:pass@localhost?weight=33' - array(array('localhost', 11211, 33))

Parameters

array[]|string|string[] $servers An array of servers, a DSN, or an array of DSNs
array $options An array of options

Return Value

Memcached

Exceptions

ErrorEception When invalid options or servers are provided

at line line 27
__construct(Memcached $client, string $namespace = '', int $defaultLifetime)

Parameters

Memcached $client
string $namespace
int $defaultLifetime