🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# Cache 跨进程的高速内存缓存 这是在控制器中的使用方法 ```php public function http_map_add() { $cache = Cache::getCache('TestCache'); $cache->addMap('123'); $this->http_output->end($cache->getAllMap()); } ``` 其中TestCache是个Task类 ```php /** * Class TestCache * @package Server\Tasks */ class TestCache extends Task { public $map = []; public function addMap($value) { $this->map[] = $value; return true; } public function getAllMap() { return $this->map; } } ``` 就这么简单。