Files
cache-valkey/CHANGELOG.md

22 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2026-05-29 15:58:56 +00:00
# Changelog — cache-valkey
All notable changes to this module are documented here.
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
This module adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.0] — 2026-05-28
### Added
- `Provider` interface: six common Valkey operations (`Get`, `Set`, `Del`, `Exists`,
`Expire`, `IncrWithTTL`) using only standard Go types, plus `Native() vk.Client`
escape hatch.
- `Component` interface: `Provider` + `lifecycle.Component` + `observability.Checkable`.
- `Config` struct with `EINHERJAR_VALKEY_*` env tags (caarlos0/env compatible).
- `New(logger, cfg) Component` factory — lifecycle-aware Valkey client.
- `NewPermissionCache(Provider) *PermissionCache` — satisfies `auth/rbac.Cache`
via duck typing.
- `NewRateLimiterStore(Provider, window, limit) *RateLimiterStore` — satisfies
`web/mw.RateLimiterStore` via duck typing; fixed-window Lua counter.
- `NewBlacklist(Provider) *Blacklist` — satisfies `auth-jwt.Blacklist` via duck typing.