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.
安装
npx skills add samber/cc-skills-golang --skill golang-samber-hotnpx skills add samber/cc-skills-golang --skill golang-samber-hot -a claude-code -gnpx skills add samber/cc-skills-golang --skill golang-samber-hot -a codex -ggemini skills install https://github.com/samber/cc-skills-golang.git --path skills/golang-samber-hotgh skill install samber/cc-skills-golang golang-samber-hotgit clone --depth 1 https://github.com/samber/cc-skills-golang /tmp/samber__cc-skills-golang
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/samber__cc-skills-golang/skills/golang-samber-hot ~/.claude/skills/golang-samber-hot # Claude Code
cp -R /tmp/samber__cc-skills-golang/skills/golang-samber-hot ~/.agents/skills/golang-samber-hot # Codex, Cursor, Gemini CLI, Copilot, OpenCode