Spec-Zone.ru › Symfony 3.4

RedisCache

class RedisCache extends AbstractCache

Свойства

RedisTrait
AbstractTrait
LoggerAwareTrait

Методы

hasItem($key)

{@inheritdoc}

from AbstractTrait
clear()

{@inheritdoc}

from AbstractTrait
deleteItem($key)

{@inheritdoc}

from AbstractTrait
deleteItems(array $keys)

{@inheritdoc}

from AbstractTrait
static handleUnserializeCallback($class) from AbstractTrait
get($key, $default = null)

{@inheritdoc}

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

{@inheritdoc}

from AbstractCache
getMultiple($keys, $default = null)

{@inheritdoc}

from AbstractCache
setMultiple($values, $ttl = null)

{@inheritdoc}

from AbstractCache
deleteMultiple($keys)

{@inheritdoc}

from AbstractCache
init($redisClient, $namespace = '', $defaultLifetime) from RedisTrait
static Redis|Client createConnection(string $dsn, array $options = array())

Создаёт соединение с Redis, используя конфигурацию DSN.

from RedisTrait
__construct(Redis|RedisArray|RedisCluster|Client $redisClient, string $namespace = '', int $defaultLifetime)

Подробности

hasItem($key)

{@inheritdoc}

Параметры

$key

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

Параметры

$key

deleteItems(array $keys)

{@inheritdoc}

Параметры

array $keys

static handleUnserializeCallback($class)

Параметры

$class

get($key, $default = null)

{@inheritdoc}

Параметры

$key
$default

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

{@inheritdoc}

Параметры

$key
$value
$ttl

getMultiple($keys, $default = null)

{@inheritdoc}

Параметры

$keys
$default

setMultiple($values, $ttl = null)

{@inheritdoc}

Параметры

$values
$ttl

deleteMultiple($keys)

{@inheritdoc}

Параметры

$keys

init($redisClient, $namespace = '', $defaultLifetime)

Параметры

$redisClient
$namespace
$defaultLifetime

static Redis|Client createConnection(string $dsn, array $options = array())

Создаёт соединение с Redis, используя конфигурацию DSN.

Пример DSN: - redis://localhost - redis://example.com:1234 - redis://secret@example.com/13 - redis:///var/run/redis.sock - redis://secret@/var/run/redis.sock/13

Параметры

string $dsn
array $options См. self::$defaultConnectionOptions

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

Redis|Client В соответствии с опцией "class"

Исключения

InvalidArgumentException При некорректном DSN.

__construct(Redis|RedisArray|RedisCluster|Client $redisClient, string $namespace = '', int $defaultLifetime)

Параметры

Redis|RedisArray|RedisCluster|Client $redisClient
string $namespace
int $defaultLifetime

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Cache/Simple/RedisCache.html

Spec-Zone.ru

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