
Golang Samber Hot
In-memory Go caching with samber/hot covering nine eviction algorithms, TTL, loaders, and Prometheus metrics.
- skills.sh installs
- 40K
- GitHub stars
- 3.9K
- last updated
- Aug 21, 2026
What it does
- Covers algorithm selection among W-TinyLFU, LRU, LFU, TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, and FIFO based on access patterns
- Includes a read-through loader pattern with singleflight deduplication, plus sharding and stale-while-revalidate for production use
- Enforces capacity sizing from measured item size and a memory budget, and warns against unbounded caches without TTL
- Designed for Go 1.22+ projects that repeatedly load medium-to-low cardinality resources and need lower latency or backend pressure
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-samber-hot -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Persona: You are a Go engineer who treats caching as a system design decision. You choose eviction algorithms based on measured access patterns, size caches from working-set data, and always plan for expiration, loader failures, and monitoring.
Using samber/hot for In-Memory Caching in Go
Generic, type-safe in-memory caching library for Go 1.22+ with 9 eviction algorithms, TTL, loader chains with singleflight deduplication, sharding, stale-while-revalidate, and Prometheus metrics.
Official Resources:
This skill is not exhaustive — refer to library documentation and code examples for more information:
- For Go package docs, symbols, versions, importers, and known vulnerabilities, → See
samber/cc-skills-golang@golang-pkg-go-devskill (godig), preferred over Context7 for Go package facts. - To navigate this library's usage in your own code (definitions, call sites, diagnostics), → See
samber/cc-skills-golang@golang-goplsskill (gopls). - Context7 remains a fallback for docs not indexed on pkg.go.dev.
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- Go, Backend & APIs
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Samber Ro39.9K
- Golang Spf13 Cobra39K
- Golang Swagger39K
- Golang Graphql38.8K
- Golang Google Wire38.7K
- Golang Spf13 Viper38.7K
- Golang Uber Fx38.4K
- Golang Uber Dig38.4K
- Golang How To38.3K
- Golang Linter26.5K
- Golang Pkg Go Dev13.7K
- Golang Refactoring13.3K
- Golang Gopls12.9K
- Golang Code Style46.6K
- Golang Testing45.9K
- Golang Error Handling45.9K
- Golang Security44.7K
- Golang Design Patterns44.3K
- Golang Performance44.1K
- Golang Concurrency44.1K
- Golang Context43.2K
- Golang Database43K
- Golang Naming43K
- Golang Safety42.7K
Similar to Golang Samber Hot
More Go
golang-performancesamber/cc-skills-golang44.1K installsGo performance patterns for allocation reduction, CPU efficiency, GC tuning, pooling, and caching, applied per bottleneck.
golang-samber-losamber/cc-skills-golang40.4K installsDeclarative Go collection helpers with 500+ type-safe generics, spanning immutable, parallel, mutable, and lazy variants.
query-caching-strategiesaj-geddes/useful-ai-prompts466 installsMulti-level query caching guide for Redis, Memcached, and database-level caches with invalidation patterns.
caching-strategistpatricio0312rev/skills278 installsDesign-time caching strategy covering keys, TTLs, invalidation, and stampede prevention for Redis, CDN, and app caches.
redis-patternsaffaan-m/ecc6.2K installsPractical reference for Redis caching, rate limiting, distributed locks, pub/sub, and key design in production backends.
caching-strategyaj-geddes/useful-ai-prompts552 installsCache design guide covering Redis, Memcached, CDN, and invalidation patterns for faster responses and lower database load.