Spec-Zone.ru › Symfony 4.1

MemcachedTrait

интерфейс MemcachedTrait

Методы

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

Создаёт экземпляр Memcached.

doSave(array $values, $lifetime)

{@inheritdoc}

doFetch(array $ids)

{@inheritdoc}

doHave($id)

{@inheritdoc}

doDelete(array $ids)

{@inheritdoc}

doClear($namespace)

{@inheritdoc}

Подробности

static isSupported()

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

Создаёт экземпляр Memcached.

По умолчанию включены бинарный протокол, без блокировки и совместимость с libketama.

Примеры для серверов: - 'memcached://user:pass@localhost?weight=33' - array(array('localhost', 11211, 33))

Параметры

array[]|string|string[] $servers Массив серверов, DSN или массив DSN
array $options Массив опций

Возвращаемое значение

Memcached

Исключения

ErrorException При предоставлении неверных опций или серверов

protected doSave(array $values, $lifetime)

{@inheritdoc}

Параметры

array $values
$lifetime

protected doFetch(array $ids)

{@inheritdoc}

Параметры

array $ids

protected doHave($id)

{@inheritdoc}

Параметры

$id

protected doDelete(array $ids)

{@inheritdoc}

Параметры

array $ids

protected doClear($namespace)

{@inheritdoc}

Параметры

$namespace

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Cache/Traits/MemcachedTrait.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API