企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 缓存配置 ~~~ // 缓存配置 'cache' => [ // 默认缓存类型 'default_drive' => 'file', // 文件缓存类型配置 'file' => [ // 默认缓存目录 'dir' => HEPPSVAR . 'cache/', // 缓存有效期 全局 0表示永久 'expire' => 0, // 缓存前缀 'prefix' => '', ], // 数组形式 'memcache' => [ 'prefix' => 'dream_', 'expire' => 0, 'servers' => [ ['host' => '127.0.0.1', 'port' => '11211', 'persistent' => true, 'weight' => 1, 'timeout' => 1], ['host' => '127.0.0.1', 'port' => '11212', 'persistent' => true, 'weight' => 1, 'timeout' => 1], ['host' => '127.0.0.1', 'port' => '11213', 'persistent' => true, 'weight' => 1, 'timeout' => 1], ], ], 'memcached' => [ 'prefix' => 'dream', 'expire' => 0, 'option' => [], 'username' => '', 'password' => '', 'servers' => [ ['host' => '127.0.0.1', 'port' => '11211', 'persistent' => true, 'weight' => 1, 'timeout' => 1], ['host' => '127.0.0.1', 'port' => '11212', 'persistent' => true, 'weight' => 1, 'timeout' => 1], ['host' => '127.0.0.1', 'port' => '11213', 'persistent' => true, 'weight' => 1, 'timeout' => 1], ], ], 'redis' => [ 'database' => 1, 'expire' => 0, 'option' => [], 'password' => '', 'persistent' => false, 'servers' => [ ['host' => '127.0.0.1', 'port' => 6379, 'timeout' => 1], ], ], ~~~