- 实现SQLite缓存模块,支持高效查询和存储 - 添加缓存键生成策略(基于原文+语言对的SHA256哈希) - 集成缓存到Translator类,先查缓存再调用API - 添加缓存管理命令:cache clear, cache stats, cache cleanup - 实现组合缓存清理策略(数量限制+时间过期) - 添加完整的单元测试 - 更新配置文件模板,添加缓存配置 - 更新文档和版本记录 版本: v0.5.1
20 lines
759 B
Modula-2
20 lines
759 B
Modula-2
module github.com/titor/fanyi
|
|
|
|
go 1.26.1
|
|
|
|
require (
|
|
github.com/AlecAivazis/survey/v2 v2.3.7 // indirect
|
|
github.com/go-enry/go-enry/v2 v2.9.5 // indirect
|
|
github.com/go-enry/go-oniguruma v1.2.1 // indirect
|
|
github.com/joho/godotenv v1.5.1 // indirect
|
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
|
github.com/mattn/go-colorable v0.1.2 // indirect
|
|
github.com/mattn/go-isatty v0.0.8 // indirect
|
|
github.com/mattn/go-sqlite3 v1.14.37 // indirect
|
|
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
|
|
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
|
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
|
|
golang.org/x/text v0.4.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
)
|