Synaptic SkillsSynapticSkills
MarketplaceSkill GraphCriar SkillMCP ServerPlataformaEnterprise
v0.1.0-beta
Voltar ao Marketplace
DevelopmentMédio

Using samber/hot for In-Memory Caching in Go

porsamber·samber· v1.0.0 · atualizado em 2026-04-10
83
Score

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.

golangcachingin-memory-cachesamber-hotperformanceeviction-algorithmttl
0Stars
0Forks
0Usos
Fork

Documento do Skill

SKILL.mdgolang-samber-hot/workflow
1. Install the samber/hot library using `go get -u github.com/samber/hot`.
2. Choose an appropriate eviction algorithm based on access patterns (e.g., W-TinyLFU, LRU, LFU).
3. Estimate the cache capacity based on memory budget and item size.
4. Create a new `HotCache` instance with the selected algorithm and capacity.
5. Configure the cache with TTL, loaders, and a janitor for expired entry cleanup.
6. Implement `Get()` and `Set()` operations to interact with the cache.
7. Monitor cache performance using Prometheus metrics.

Telemetria de Agentes

Execuções
0
total
Taxa de Sucesso
0%
últimos 30d
Latência Média
0.0s
p50
Alucinação
0.0%
detecção
Tokens Entrada
0
avg 0/exec
Tokens Saída
0
avg 0/exec

Uso por Plataforma

Skills Relacionados

Compõe com ←samber/ro — Reactive Streams for Go
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
80
Similar aSolana Development Skill (framework-kit-first)
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
85
Similar aCoder
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
81
Similar aElysiaJS Development Skill
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
84

Árvore do Skill

Using samber/hot for In-Memory Caching in Go
golang-samber-hot
Fases Cognitivas6
1.SENSE
2.CONTEXTUALIZE
3.RECOMMEND
4.ACT
5.EVALUATE
6.REFLECT
Triggers8
implement in-memory caching in Gouse samber/hot for cachingoptimize Go application with cachingchoose an eviction algorithm for cachingconfigure TTL for cache entriesadd caching to a Go servicereduce database load with cachingimprove application latency with caching

Avaliar este Skill

Score Breakdown

⭐Avaliação Humana0%
🤖Sucesso de Agentes0%
🕐Atualidade100%
🔗Saúde de Dependências100%
🕸️Centralidade no Grafo0%
🛡️Segurança50%
CompositeScore = α·Humano + β·Agente + γ·Recência + δ·Deps + ε·Centralidade + ζ·Segurança

Instalação

$ synaptic mcp download golang-samber-hot
$ synaptic skills detail golang-samber-hot
$ synaptic skills live golang-samber-hot

Dependências

github.com/samber/hot

Links

GitHub Repository