Cache.php 334 B

1234567891011121314151617
  1. <?php
  2. namespace think\swoole\pool;
  3. use think\swoole\pool\proxy\Store;
  4. class Cache extends \think\Cache
  5. {
  6. protected function createDriver(string $name)
  7. {
  8. return new Store(function () use ($name) {
  9. return parent::createDriver($name);
  10. }, $this->app->config->get('swoole.pool.cache', []));
  11. }
  12. }