golang-samber-hot
Build Reliable Go Caches with samber/hot
Repeated backend reads can increase latency and overload services. This skill guides samber/hot cache design with workload-based eviction, expiration, loaders, concurrency controls, and monitoring.
๋ด ์์ด์ ํธ๋ก ์ค์น
์ด ์์ฒญ์ ์์ด์ ํธ์ ๋ณต์ฌํ์ธ์. ๊ณต์ Skill ํ์ด์ง์ ๋งค๋ํ์คํธ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
Review the Skillstore skill "golang-samber-hot" from https://skillstore.io/skills/samber-golang-samber-hot.md and its manifest at https://skillstore.io/api/skills/samber-golang-samber-hot/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.์์ด์ ํธ๋ ๊ณ์ํด์ ๊ณํ์ ํ์ํ๊ณ ๋ณด์ ์ ์ฑ ์์ ์๊ตฌํ๋ ํ์ธ์ ์์ฒญํด์ผ ํฉ๋๋ค.
์์ด์ ํธ๊ฐ ์ฝ๊ธฐ ์ฌ์ด ๋ฆฌ์์ค
AI ์์ด์ ํธ, ํฌ๋กค๋ฌ, ์คํฌ๋ฆฝํธ๊ฐ ์ ์ฒด ํ์ด์ง ๋์ ์ ๋ฆฌ๋ ์ปจํ ์คํธ๋ง ํ์ํ ๋ ์ด ๋งํฌ๋ฅผ ์ฌ์ฉํ์ธ์.
ํ ์คํธํด ๋ณด๊ธฐ
"golang-samber-hot" ์ฌ์ฉ ์ค์ ๋๋ค. Which policy fits stable, heavily skewed DNS cache lookups?
์์ ๊ฒฐ๊ณผ:
- LFU is a candidate because a small, consistently popular key set dominates requests.
- Changing popularity can leave outdated items favored, so compare alternatives if the workload shifts.
- Benchmark representative lookups and choose TTL independently from eviction policy.
"golang-samber-hot" ์ฌ์ฉ ์ค์ ๋๋ค. Can I combine disabled locking with background TTL cleanup?
์์ ๊ฒฐ๊ณผ:
- The skill identifies disabled locking and janitor cleanup as incompatible options that can panic.
- Keep locking when using background cleanup or concurrent access.
- For a single-goroutine design, omit the janitor and plan explicit cleanup.
"golang-samber-hot" ์ฌ์ฉ ์ค์ ๋๋ค. How should I monitor a samber/hot cache?
์์ ๊ฒฐ๊ณผ:
- Enable the library's Prometheus metrics and register the cache as a collector.
- Track hit ratio, eviction rate, and cache occupancy relative to capacity.
- Set alert thresholds from workload requirements and investigate changes before increasing memory.
๋ณด์ ๊ฐ์ฌ
์์ All 43 static findings are false positives involving Markdown formatting, cache terminology, documentation links, or normal development tool declarations. The installation example uses standard Go dependency tooling, not shell substitution. No evidence found of credential theft, exfiltration, destructive behavior, or prompt injection in the reviewed files.
์ํ ์์ธ
โ๏ธ ์ธ๋ถ ๋ช ๋ น์ด (33)
๐ ๋คํธ์ํฌ ์ ๊ทผ (4)
์ด ๋ณด๊ณ ์ ๊ณต์ ๋ฐ ์ธ์ฉ
๋ฒ์ ์ด ์ง์ ๋ ํ๊ฐ ๋ณด๊ณ ์, ์ค๋ฆฝ ๋ฐฐ์ง, ์๋ฒ ๋ ์นด๋ ๋ฐ ์ธ์ฉ์ ๊ณต์ ํ์ธ์. Skillstore๋ ๊ทผ๊ฑฐ๋ฅผ ๋ณด๊ณ ํ์ง๋ง ์ด Skill์ ์์ ์ฌ๋ถ๋ฅผ ํ๋จํ์ง ์์ต๋๋ค.
๋ณด๊ณ ์ ๋งํฌ ๋ณต์ฌ
https://skillstore.io/skills/samber-golang-samber-hot/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown ๋ฐฐ์ง
[](https://skillstore.io/skills/samber-golang-samber-hot?utm_source=security_passport_badge)HTML ๋ฐฐ์ง
<a href="https://skillstore.io/skills/samber-golang-samber-hot?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/samber-golang-samber-hot/security.svg" alt="Skillstore security assessment" loading="lazy"></a>์๋ฒ ๋ ์นด๋
<iframe src="https://skillstore.io/embed/skills/samber-golang-samber-hot.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>ํ์ ์ธ์ฉ (APA ยท BibTeX ยท CFF)
APA ์ธ์ฉ
samber. (2026). golang-samber-hot security audit report (audit version 1) [Author version 1.1.2]. Skillstore. https://skillstore.io/skills/samber-golang-samber-hot/audits/1BibTeX ์ธ์ฉ
@techreport{samber-samber-golang-samber-hot-2026,
author = {samber},
title = {golang-samber-hot security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/samber-golang-samber-hot/audits/1},
note = {Author version 1.1.2}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "golang-samber-hot security audit report (audit version 1)"
version: "1.1.2"
type: report
authors:
- name: "samber"
date-released: "2026-10-18"
url: "https://skillstore.io/skills/samber-golang-samber-hot/audits/1"
identifiers:
- type: other
value: "skillstore:samber-golang-samber-hot:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore ์ ์
์ด ์ ์์ ์ด์ ์ฆ๊ฑฐ ์ ๋ขฐ๋: ์ค๊ฐ๋ง๋ค ์ ์๋ ๊ฒ
Reduce Repeated Profile Queries
Design a typed user cache with expiration, batch loaders, error handling, and negative caching for missing profiles.
Investigate Cache Contention
Review measured mutex contention, evaluate sharding, and choose monitoring signals before changing capacity or eviction policy.
Review Cache Integration Safety
Check janitor cleanup, incompatible builder options, stale-data policies, and shared mutable values during code review.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Using samber/hot, create a string-to-byte-slice cache with 10,000 entries and a five-minute TTL. Include janitor cleanup and handle retrieval errors.
Compare samber/hot eviction policies for [access pattern]. Use [memory budget] and [estimated entry size] to estimate capacity. Explain what measurements would validate the choice.
Design a samber/hot cache for [entity] with a batch database loader and negative caching. Address concurrent misses, expiration jitter, loader errors, and janitor cleanup.
Review [cache implementation] against [freshness requirements], [concurrency profile], and [memory budget]. Evaluate sharding, revalidation, mutable values, Prometheus metrics, and shutdown. Propose focused validation tests.
๋ชจ๋ฒ ์ฌ๋ก
- Measure access patterns and entry sizes before selecting an eviction policy or capacity.
- Set expiration deliberately, handle loader errors, and stop janitor goroutines during shutdown.
- Validate concurrency and mutable-value handling with tests, then monitor hit ratio and eviction behavior.
ํผํ๊ธฐ
- Disable locking for concurrent workloads or combine disabled locking with a background janitor.
- Call negative-cache methods before enabling missing-key cache configuration.
- Ignore loader errors or let callers mutate shared cached objects without suitable copying.
์์ฃผ ๋ฌป๋ ์ง๋ฌธ
What does this skill provide?
Which AI tools are listed as supported?
Does this replace Redis or provide persistence?
Which eviction algorithm should I start with?
How does it address simultaneous cache misses?
Does it automatically install dependencies or configure monitoring?
๊ฐ๋ฐ์ ์ธ๋ถ ์ ๋ณด
์์ฑ์
samber๋ผ์ด์ ์ค
MIT
์์ฑ์ ๋ฒ์
v1.1.2
Skillstore ๋ฆฌ๋น์
r1
๋ฆฌํฌ์งํ ๋ฆฌ
https://github.com/samber/cc-skills-golang/tree/8e899e20ff0cd4dc524af3993e4c62d8ee8c5717/skills/golang-samber-hot์ฐธ์กฐ
6093890d49a212c14c65676829e1af5ee07ab3dc
์ ์ง๋ณด์ ์ต์ ์ฑ
2026. 10. 18.
์ฌ์ฉ๋
0 ๋ค์ด๋ก๋ ยท 0 ์กฐํ
ํ์ผ ๊ตฌ์กฐ
๐ evals/
๐ evals.json
๐ references/
๐ algorithm-guide.md
๐ api-reference.md
๐ SKILL.md