[Feature]: Add a new module `vfox.cache` to allow plugins to cache something.
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The issue provides only a Lua usage sketch for a new vfox.cache module and names no files, tests, or entry points. Start by locating the plugin API and existing storage-related code, then clarify cache path, key/value handling, expiration, and removal behavior. Done means the module is available to plugins and its behavior is covered by tests.
由索引模型根据 Issue 内容生成。
描述
2. What is your expected outcome?
Something like below:
local c = require('vfox.cache')
local cache = c.new('path')
--- -1 : never expired
cache.set(key, value, expire_time)
local value = cache.get(key)
local success = cache.remove(key)
- 主要语言
- Go
- 星标
- 4k
- 派生
- 177
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 31
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
version-fox/vfox 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
version-fox/vfox#825 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
version-fox/vfox#823 ·
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 45/100
version-fox/vfox#824 ·
维护者通常 1 天内回复
-
Plugins fail to load when the HOME path contains ';' or '?' (Lua package.path)可能已有人在做 @Xnadir 今天认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 35/100
version-fox/vfox#821 ·
维护者通常 1 天内回复
-
[BUG]: the Available cache ignores the environment, so one setting's list is shown for another可能已有人在做 @nanami7777777 于 1 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 25/100
version-fox/vfox#816 ·
维护者通常 1 天内回复
相似的 Issue
-
tld-snapshot
难度 2/5 1-3 小时 新手友好度 72/100
awslabs/ferret-scan#1064 ·
维护者通常 2 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 62/100
DaoCloud/DaoCloud-docs#7839 ·
维护者通常 1 天内回复
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)未关闭
难度 1/5 1 小时以内 新手友好度 72/100
influxdata/influxdb#27767 ·
维护者通常 1 天内回复
-
Type: Enhancement
难度 2/5 1-3 小时 新手友好度 62/100
projectdiscovery/urlfinder#167 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
gojue/ecapture#1100 · 1 个 reaction ·
维护者通常 1 天内回复