Lightlines
By samber

golang-samber-hot

samber34.7k installs

Build Go caches sized for your memory budget.

What it does

Guides developers in building Go caches with eviction policies and capacities suited to their workloads and memory budgets.

When to use it

Use when adopting or using samber/hot, when the project imports it, or when repeated high-frequency resource loads need caching.

How to use it

It changes how the agent implements Go caching by grounding eviction, capacity, expiration, failure handling, and monitoring in the workload.

What you provide

  • An existing project

Uses

Good to know

  • cannot be undone: GitHub

Latest review

What you need · 2

Requires Go 1.22 or later for the caching library.

The coding guidance is specifically for the samber/hot caching library.


Access · 2

This skill

GitHub

Write

Posts bug reports to GitHub (irreversible)

pkg.go.dev

Read

Consults Go package documentation