Releases: Tochemey/distcache
Releases · Tochemey/distcache
v0.4.0
Immutable
release. Only release title and notes can be modified.
✨ Highlights
- New admin diagnostics server with JSON endpoints for peers and keyspace stats.
- Warmup & hot key prefetching on cluster join/leave events.
- Engine-level tracing/metrics (OpenTelemetry) around core operations.
- Keyspace-level overrides for TTL, timeouts, max bytes, warm keys, and protection policies.
- New
GetManyAPI and runtime keyspace updates viaUpdateKeySpace.
🚀 New Features
- Admin diagnostics (
adminpackage)/peersand/keyspacesendpoints.- Keyspace snapshots include cache sizes and stats when available.
- Warmup & hot keys (
warmuppackage)- Hot key tracking and prefetch on join/leave.
- Concurrency and timeout controls.
- Batch operations
GetManyreturns values in input order.
- Dynamic keyspace updates
UpdateKeySpacerecreates the group and can trigger warmup.
- DataSource protection
- Engine-level and per-keyspace rate limiting and circuit breaking.
⚠️ Breaking Changes / Migration
WithDataSourceProtectorremoved → useWithRateLimiterandWithCircuitBreaker.- Keyspace config now flows through main
Configoptions (noKeySpaceConfigProvider).- Use
WithKeySpaceMaxBytes,WithKeySpaceDefaultTTL,WithKeySpaceReadTimeout,
WithKeySpaceWriteTimeout,WithKeySpaceWarmKeys,WithKeySpaceRateLimiter,
WithKeySpaceCircuitBreaker.
- Use
- Admin and warmup configs now live in dedicated packages:
admin.Configwarmup.Config
🧪 Quality
- Added production-oriented tests for admin and warmup behavior.
- Fixed race conditions in warmup tests and improved mock safety.
📌 Notes
WaitTimeout > 0for rate limiting may returncontext.DeadlineExceededwhen waiting exceeds the limit.- Admin endpoints should be protected (reverse proxy / ACLs) in production.
📚 Docs
- README expanded with quick start, admin endpoint examples, warmup behavior, and precedence rules.
🔗 Pull Requests
Full Changelog: v0.3.0...v0.4.0
v0.3.0
v0.2.0
v0.1.0
What's Changed
- Initial Release contains all required functionalities to build a production-ready Read-Through cache system.
Pull Requests
New Contributors
Full Changelog: https://github.com/Tochemey/distcache/commits/v0.1.0