RedisTrait
trait RedisTrait
Methods
static Redis|RedisCluster|Client
createConnection(string $dsn, array $options = array())
Creates a Redis connection using a DSN configuration.
doFetch(array $ids)
{@inheritdoc}
doHave($id)
{@inheritdoc}
doClear($namespace)
{@inheritdoc}
doDelete(array $ids)
{@inheritdoc}
doSave(array $values, $lifetime)
{@inheritdoc}
Details
static Redis|RedisCluster|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