go-cache-caching
CommunityType-safe, multi-store caching for Go apps
Authorkaptinlin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Go applications often need fast, reliable caching with strong type-safety. This Skill provides a unified approach to multi-store caching in Go using a generic, store-driven cache library with pluggable backends (memory, Redis, SQLite, PostgreSQL), loader patterns, and batch support to reduce latency and backend load.
Core Features & Use Cases
- Type-safe, generic Cache[T] APIs for Go
- Multi-store backends: memory, redis, sqlite, postgres with backfill chaining
- Loader pattern and cache-aside semantics for on-demand loading
- Batch operations for bulk reads/writes to minimize round-trips
- Iterable stores for databases like SQLite/PostgreSQL
- Codec support for JSON/MessagePack/ Gob and zero-dependency Go
- Background cleanup and MVCC-like concurrency benefits
Quick Start
Create a typed cache with a chosen store (memory, Redis, SQLite, or PostgreSQL) and start using Get/Set and optional loader patterns.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-cache-caching Download link: https://github.com/kaptinlin/gozod/archive/main.zip#go-cache-caching Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.