Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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 eZ\DemoBundle\Cache;
- use Symfony\Component\Cache\Adapter\AbstractAdapter;
- use Symfony\Component\Cache\Traits\RedisTrait;
- class RedisSAAdapter 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
- * @param \eZ\Publish\Core\MVC\Symfony\SiteAccess $siteAccessService
- */
- public function __construct($redisClient, $namespace = '', $defaultLifetime = 0, $siteAccessService)
- {
- // maybe ugly but works ;)
- if ($siteAccessService != null ) {
- $namespace = $siteAccessService->name;
- }
- $this->init($redisClient, $namespace, $defaultLifetime);
- }
- }
Add Comment
Please, Sign In to add comment