RedisAdapter

class RedisAdapter extends AbstractAdapter

Traits

LoggerAwareTrait

Methods

static createSystemCache($namespace, $defaultLifetime, $version, $directory, LoggerInterface $logger = null) from AbstractAdapter
getItem($key)

{@inheritdoc}

from AbstractAdapter
getItems(array $keys = array())

{@inheritdoc}

from AbstractAdapter
hasItem($key)

{@inheritdoc}

from AbstractAdapter
clear()

{@inheritdoc}

from AbstractAdapter
deleteItem($key)

{@inheritdoc}

from AbstractAdapter
deleteItems(array $keys)

{@inheritdoc}

from AbstractAdapter
save(CacheItemInterface $item)

{@inheritdoc}

from AbstractAdapter
saveDeferred(CacheItemInterface $item)

{@inheritdoc}

from AbstractAdapter
commit()

{@inheritdoc}

from AbstractAdapter
__destruct() from AbstractAdapter
static handleUnserializeCallback($class) from AbstractAdapter
__construct($redisClient, $namespace = '', $defaultLifetime)
static Redis|Client createConnection(string $dsn, array $options = array())

Creates a Redis connection using a DSN configuration.

Details

static createSystemCache($namespace, $defaultLifetime, $version, $directory, LoggerInterface $logger = null)

Parameters

$namespace
$defaultLifetime
$version
$directory
LoggerInterface $logger

getItem($key)

{@inheritdoc}

Parameters

$key

getItems(array $keys = array())

{@inheritdoc}

Parameters

array $keys

hasItem($key)

{@inheritdoc}

Parameters

$key

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

Parameters

$key

deleteItems(array $keys)

{@inheritdoc}

Parameters

array $keys

save(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

Parameters

CacheItemInterface $item

commit()

{@inheritdoc}

__destruct()

static handleUnserializeCallback($class)

Parameters

$class

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

Parameters

$redisClient
$namespace
$defaultLifetime

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

Creates a Redis connection using a DSN configuration.

Example DSN: - redis://localhost - redis://example.com:1234 - redis://secret@example.com/13 - redis:///var/run/redis.sock - redis://secret@/var/run/redis.sock/13

Parameters

string $dsn
array $options See self::$defaultConnectionOptions

Return Value

Redis|Client According to the "class" option

Exceptions

InvalidArgumentException When the DSN is invalid.
doc_Symfony
2016-10-28 06:28:45
Comments
Leave a Comment

Please login to continue.