# golang-samber-hot

> In-memory caching in Golang using samber/hot — eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue…

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.

- Type: Skill
- Made by: samber
- Category: Developer tools
- Formats: Skills
- Version: 1.1.2
- Source: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot
- Page: https://pluginboard.ai/skills/golang-samber-hot

## Works with

- ChatGPT
- Claude
- Gemini
- GitHub Copilot
- Cursor
- Claude Code
- Codex
- Antigravity
- Gemini CLI
- Replit
- OpenClaw
- OpenCode
- Hermes Agent

## Install

### ChatGPT

In ChatGPT: Download the golang-samber-hot folder and zip it, then Plugins → Skills → Create → Upload from your computer. Business and Enterprise plans.

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### Claude

In Claude (web or desktop): Download the golang-samber-hot folder and zip the folder itself, then upload it in Customize → Skills.

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### Gemini

In Gemini: Download the golang-samber-hot folder, then at gemini.google.com click Customize → Skills → Create → Upload and pick the folder (or a .zip of it).

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### GitHub Copilot

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-samber-hot ~/.copilot/skills/golang-samber-hot
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### Cursor

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-samber-hot ~/.cursor/skills/golang-samber-hot
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### Claude Code

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-samber-hot ~/.claude/skills/golang-samber-hot
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### Codex

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-samber-hot ~/.agents/skills/golang-samber-hot
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### Antigravity

In Antigravity: Copy the golang-samber-hot folder into ~/.gemini/config/skills (Antigravity app and IDE) or ~/.gemini/antigravity-cli/skills (Antigravity CLI).

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### Gemini CLI

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-samber-hot ~/.gemini/skills/golang-samber-hot
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### Replit

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-samber-hot .agents/skills/golang-samber-hot
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### OpenClaw

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-samber-hot ~/.openclaw/skills/golang-samber-hot
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### OpenCode

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-samber-hot ~/.config/opencode/skills/golang-samber-hot
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

### Hermes Agent

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-samber-hot ~/.hermes/skills/golang-samber-hot
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-samber-hot

---
From Pluginboard (https://pluginboard.ai).
