1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- declare(strict_types=1);
- namespace App\Service;
- use Hyperf\Di\Annotation\Inject;
- use Psr\Container\ContainerInterface;
- abstract class RedisInterface
- {
- protected $redis;
-
- protected ContainerInterface $container;
- public function __construct()
- {
-
- $this->redis = $this->container->get(\Hyperf\Redis\Redis::class);
- }
- }
|