super_cache_testing 1.0.0
super_cache_testing: ^1.0.0 copied to clipboard
Test utilities for super_cache. Provides FakeCache and ManualClock so consumers can write deterministic TTL and eviction tests.
Changelog #
All notable changes to super_cache_testing are documented here.
Releases follow Semantic Versioning.
1.0.0 — 2024-01-01 #
Stable public release. API is frozen.
Changed #
- Version aligned with the rest of the
super_cachefamily. - Documentation improvements.
0.4.0 #
Added #
FakeCache<K,V>— synchronous in-memoryCache<K,V>implementation for unit tests. No eviction; all entries survive until explicitly removed or TTL elapses. Exposesgets,putscounters and areset()helper.ManualClock— injectable time source. Pass it toFakeCacheand calladvance(Duration)orsetTime(DateTime)to control TTL expiration withoutFuture.delayed. Makes TTL tests deterministic and instant.