new files
This commit is contained in:
16
pro_v3.5.1/vendor/topthink/think-swoole/src/pool/Cache.php
vendored
Executable file
16
pro_v3.5.1/vendor/topthink/think-swoole/src/pool/Cache.php
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
<?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', []));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user