打印创建问诊订单log
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Factory;
|
||||
|
||||
use Hyperf\Cache\Cache;
|
||||
use Hyperf\Cache\CacheManager;
|
||||
|
||||
class CacheFactory extends Cache
|
||||
{
|
||||
protected $driver;
|
||||
|
||||
public function __construct(CacheManager $manager)
|
||||
{
|
||||
parent::__construct($manager);
|
||||
$this->driver = $manager->getDriver('prod');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Factory;
|
||||
|
||||
use Hyperf\Redis\Redis;
|
||||
|
||||
class ProdRedisFactory extends Redis
|
||||
{
|
||||
protected string $poolName = 'prod';
|
||||
}
|
||||
Reference in New Issue
Block a user