Sign inGet started
–

Guides Go engineers in using the samber/hot in-memory caching library, including choosing eviction algorithms, TTLs, loaders, sharding, and Prometheus metrics.

Lift · GLM-5.3-flash—untestable in our sandbox · why ↓
89
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

What it does

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.

#caching#eviction-algorithms#golang#libraries#performance#prometheus

Quality judgment

completeness
8.0/10
clarity
9.0/10
trigger quality
9.0/10
examples
7.5/10
structure
9.0/10
overall
8.0/10

Well-scoped, accurate-feeling skill with a strong algorithm selection table, concrete capacity-sizing methodology, and clear pitfalls. Code examples cover basics and loaders but omit sharding, SWR, and missing-cache config despite referencing them; those are deferred to external reference files.

allowed-tools

Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch mcp__context7__resolve-library-id mcp__context7__query-docs AskUserQuestion Bash(godig:*) Bash(gopls:*) LSP mcp__gopls__*

Files (6)

evals/evals.json · 16.3 KBLICENSE · 1.0 KBreferences/algorithm-guide.md · 9.2 KBreferences/api-reference.md · 6.6 KBreferences/production-patterns.md · 7.4 KBSKILL.md · 7.8 KB