golang-samber-hot

golang samber hot

samber ↓ 33k
Claude Code
View source ↗

What it does

  • pkg.go.dev/github.com/samber/hot
  • github.com/samber/hot
  • → See samber/cc-skills-golang@golang-performance skill for general caching strategy and when to use in-memory cache vs Redis vs CDN
  • → See samber/cc-skills-golang@golang-observability skill for Prometheus metrics integration and monitoring
  • → See samber/cc-skills-golang@golang-database skill for database query patterns that pair with cache loaders
  • → See samber/cc-skills@promql-cli skill for querying Prometheus cache metrics via CLI

Requirements & configuration

  • | W-TinyLFU | hot.WTinyLFU | General-purpose, mixed workloads (default) | You need simplicity for debugging |
  • 2. Ask the developer how much memory is dedicated to this cache in production (e.g., 256 MB, 1 GB). This depends on the service's total memory and what else shares the process.

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

golang samber hot

Source

Repository: https://github.com/samber/cc-skills-golang

golang-samber-hot FAQ

What does the golang-samber-hot skill do?

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 frequency and needs to reduce latency or backend pressure. pkg.go.dev/github.com/samber/hot github.com/samber/hot

What does golang-samber-hot require?

| W-TinyLFU | hot.WTinyLFU | General-purpose, mixed workloads (default) | You need simplicity for debugging | 2. Ask the developer how much memory is dedicated to this cache in production (e.g., 256 MB, 1 GB). This depends on the service's total memory and what else shares the process.

How do I install golang-samber-hot?

Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-samber-hot --agent claude-code — the source lives at github.com/samber/cc-skills-golang.

Maintain golang-samber-hot?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

golang-samber-hot on getagentictools
[![golang-samber-hot on getagentictools](https://getagentictools.com/badge/skills/samber-cc-skills-golang-golang-samber-hot.svg)](https://getagentictools.com/skills/samber-cc-skills-golang-golang-samber-hot?ref=badge)
npx agentictools info skills/samber-cc-skills-golang-golang-samber-hot

The second line is the CLI lookup for this page — handy in READMEs and docs.