hospital-applets-api/app/Factory/CacheFactory.php

17 lines
306 B
PHP

<?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');
}
}