RedisCache.php 809 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Cache\Simple;
  11. use Symfony\Component\Cache\Traits\RedisTrait;
  12. class RedisCache extends AbstractCache
  13. {
  14. use RedisTrait;
  15. /**
  16. * @param \Redis|\RedisArray|\RedisCluster|\Predis\Client $redisClient
  17. * @param string $namespace
  18. * @param int $defaultLifetime
  19. */
  20. public function __construct($redisClient, string $namespace = '', int $defaultLifetime = 0)
  21. {
  22. $this->init($redisClient, $namespace, $defaultLifetime);
  23. }
  24. }