mirror of
https://github.com/symfony/cache.git
synced 2026-03-24 07:32:11 +01:00
* 3.2: [Console] Do not duplicate Helper::strlen() code [FrameworkBundle] Adding the extension XML [Form] Minor: Fix comment in ChoiceType [FrameworkBundle] AbstractConfigCommand: do not try registering bundles twice fixed CS fixed CS [DI] Fix PhpDumper blank lines around namespace fixed CS [Workflow] fix use directives [Workflow] Move twig extension registration to twig bundle Filesystem: annotate the one network test with a "network" group. [DependencyInjection] Don't store default deprecation template in every service definition instance
30 lines
873 B
PHP
30 lines
873 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Component\Cache\Adapter;
|
|
|
|
use Symfony\Component\Cache\Traits\RedisTrait;
|
|
|
|
class RedisAdapter extends AbstractAdapter
|
|
{
|
|
use RedisTrait;
|
|
|
|
/**
|
|
* @param \Redis|\RedisArray|\RedisCluster|\Predis\Client $redisClient The redis client
|
|
* @param string $namespace The default namespace
|
|
* @param int $defaultLifetime The default lifetime
|
|
*/
|
|
public function __construct($redisClient, $namespace = '', $defaultLifetime = 0)
|
|
{
|
|
$this->init($redisClient, $namespace, $defaultLifetime);
|
|
}
|
|
}
|