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-агентов
Используйте эти ссылки, когда AI-агенту, crawler или script нужен чистый контекст вместо полной страницы.
Протестировать
Использование «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_reportЗначок Markdown
[](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/1Цитата BibTeX
@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
Ссылка
6093890d49a212c14c65676829e1af5ee07ab3dc
Актуальность поддержки
18.10.2026
Использование
0 загрузок · 0 просмотров
Структура файлов