打印创建问诊订单log
This commit is contained in:
parent
58fa7187c9
commit
145579067d
17
app/Factory/CacheFactory.php
Normal file
17
app/Factory/CacheFactory.php
Normal file
@ -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');
|
||||||
|
}
|
||||||
|
}
|
||||||
10
app/Factory/ProdRedisFactory.php
Normal file
10
app/Factory/ProdRedisFactory.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Factory;
|
||||||
|
|
||||||
|
use Hyperf\Redis\Redis;
|
||||||
|
|
||||||
|
class ProdRedisFactory extends Redis
|
||||||
|
{
|
||||||
|
protected string $poolName = 'prod';
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user