
Description
golang-samber-hot is an agent skill from the samber cc-skills-golang collection for in-memory caching in Go with the samber/hot library. The library is a generic, type-safe cache for Go 1.22 and later, offering nine eviction algorithms including LRU, LFU, TinyLFU, W-TinyLFU, S3-FIFO, ARC, TwoQueue, SIEVE and FIFO, along with time-to-live expiry, loader chains that deduplicate concurrent loads, sharding, stale-while-revalidate and Prometheus metrics. Its persona is a Go engineer who treats caching as a system design decision. The skill asks the agent to choose the eviction algorithm based on measured access patterns rather than habit, to size the cache from working-set data, and to plan for expiry, failures in the loader that fills the cache, and monitoring from the start. The guidance is that a cache without measured access patterns is a guess, and that a cache without expiry and monitoring can quietly serve stale or wrong data. The official references are the package documentation on pkg.go.dev and the repository, and the skill notes it is not exhaustive. It is useful for Go services that repeatedly fetch the same data, where a cache could cut latency and load on a database or upstream service. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-samber-hot.…
Highlights
- Nine eviction algorithms
- TTL and loader chains
- Singleflight-style deduplication
- Sharding and stale-while-revalidate
- Prometheus metrics
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-samber-hot.
People also visit

go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context
golang-samber-hot FAQ
What does the skill cover?
In-memory caching in Go with samber/hot: eviction algorithms, time-to-live expiry, loaders, sharding and metrics.
How should an algorithm be chosen?
The skill says to choose it from measured access patterns, not habit.
Which Go version is needed?
Go 1.22 or later, according to the library description.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-samber-hot.
How popular is it?
The skills.sh page lists the skill in the cc-skills-golang collection, which has 3.5K GitHub stars.
What are the best golang-samber-hot alternatives?
Popular alternatives to golang-samber-hot include go-concurrency-patterns, golang-code-style and golang-error-handling. See all golang-samber-hot alternatives