Releases: psdhajare/imcache
Releases · psdhajare/imcache
v0.1.0 - Initial Release
Initial release of imcache -- a tiny, zero-dependency, generic, sharded,
thread-safe in-memory cache for Go 1.26+.
Features
- Generic
Cache[V any]with full type safety - Sharded locking (256 shards by default) for high-concurrency workloads
- TTL expiry (lazy on
Get+ periodic janitor sweeps) - Optional per-shard LRU eviction with O(1) performance
- Atomic
GetOrSet,SetIfAbsent,Peek - Range iterators via
iter.Seq2/iter.Seq - Lock-free hit/miss/eviction stats
- Eviction callbacks
- Zero external dependencies -- standard library only
Benchmarks
See BENCHMARKS.md
for comparative benchmarks against sync.Map, go-cache, golang-lru, bigcache,
and freecache.