阅读时间:1 分钟
0 字
缓存配置
Dux Lite 的缓存配置读取自 config/use.toml(或 use.dev.toml)。默认类型为 file,缓存目录为 data/cache。
示例:文件缓存
toml
[cache]
type = "file"
prefix = "dux_"示例:Redis 缓存
toml
[cache]
type = "redis"
prefix = "dux_"
[db.redis.drivers.default]
host = "127.0.0.1"
port = 6379
password = ""Redis 配置读取
config/database.toml的db.redis.drivers.*。