go-create-cache
✓遵循 GO 模块化架构约定生成 Go 缓存实现。在internal/modules/<module>/cache/中创建缓存层时使用 - 用户状态缓存、会话缓存、速率限制数据、临时数据存储或任何使用 Redis 进行快速数据访问并支持 TTL 的域缓存。
SKILL.md
The cache uses redis.UniversalClient directly from the Bricks Redis package (github.com/cristiano-pacheco/bricks/pkg/redis).
Always use a helper method to build cache keys consistently:
Define TTL as a range at the package level to prevent cache stampede (multiple entries expiring simultaneously):
遵循 GO 模块化架构约定生成 Go 缓存实现。在internal/modules/<module>/cache/中创建缓存层时使用 - 用户状态缓存、会话缓存、速率限制数据、临时数据存储或任何使用 Redis 进行快速数据访问并支持 TTL 的域缓存。 来源:cristiano-pacheco/ai-rules。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/cristiano-pacheco/ai-rules --skill go-create-cache- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-17
- 更新时间
- 2026-02-18
快速解答
什么是 go-create-cache?
遵循 GO 模块化架构约定生成 Go 缓存实现。在internal/modules/<module>/cache/中创建缓存层时使用 - 用户状态缓存、会话缓存、速率限制数据、临时数据存储或任何使用 Redis 进行快速数据访问并支持 TTL 的域缓存。 来源:cristiano-pacheco/ai-rules。
如何安装 go-create-cache?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/cristiano-pacheco/ai-rules --skill go-create-cache 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/cristiano-pacheco/ai-rules
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-17