19 lines
416 B
PHP
19 lines
416 B
PHP
<?php
|
|
|
|
namespace App\Driver;
|
|
|
|
use App\Factory\ProdRedisFactory;
|
|
use Hyperf\Cache\Driver\RedisDriver;
|
|
use Hyperf\Redis\Redis;
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
class ProdRedisDriver extends RedisDriver
|
|
{
|
|
public function __construct(ContainerInterface $container, array $config)
|
|
{
|
|
parent::__construct($container, $config);
|
|
|
|
$this->redis = $container->get(ProdRedisFactory::class);
|
|
}
|
|
|
|
} |