glhcp/server/vendor/topthink/think-swoole/src/pool/Cache.php

17 lines
334 B
PHP
Raw Normal View History

2023-08-10 06:59:52 +00:00
<?php
namespace think\swoole\pool;
use think\swoole\pool\proxy\Store;
class Cache extends \think\Cache
{
protected function createDriver(string $name)
{
return new Store(function () use ($name) {
return parent::createDriver($name);
}, $this->app->config->get('swoole.pool.cache', []));
}
}