BigHugger
sk Skill · samber

golang-samber-hot

In-memory caching in Golang using samber/hot — eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, cache loaders, sharding, stale-while-revalidate, missing key caching, and Prometheus metrics. Apply when using or adopting samber/hot, when the codebase imports github.com/samber/hot, or when the project repeatedly loads the same medium-to-low cardinality resources at high…

installs 8w
3,584
30-day movement
starts with the next reading
Related entries
1
Connections
0
gobashGo

An agent skill (SKILL.md) covering the samber/hot in-memory caching library for Go 1.22+, documenting its eviction algorithms, TTL, loaders, sharding, stale-while-revalidate, and Prometheus metrics. It bundles reference guides on algorithm selection, the API, and production patterns, plus pitfalls and rules sections.

Reach for it when your project uses or is adopting github.com/samber/hot and you need correct cache configuration without learning each eviction algorithm's tradeoffs from scratch.

Use it to

  • Select an eviction algorithm for a cache's access pattern
  • Set up read-through loaders with singleflight deduplication
  • Size cache capacity against a memory budget
  • Avoid TTL and janitor pitfalls like stale or lingering entries
  • Add stale-while-revalidate and missing key caching

For Go developers using samber/hot for in-memory caching

Host repository
samber/cc-skills-golang
Version
1.1.2
Installs, lifetime
36k
Installs, 8 weeks
3,584
Compatible with
Designed for Claude Code, Codex or similar harness, and for projects using Golang.
Licence
MIT
Invocable by
user
Host stars
3,261
Host language
Go
topicsgolangcachingsamber-hoteviction-algorithmsttlagent-skill