💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 缓存配置 ~~~ // 缓存配置 '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], ], ], ~~~