Open
Description
I'm working on deterministic simulation testing for SlateDB (slatedb/slatedb#267). We need control over time in all parts of our system. I noticed that moka's TTL/TTI clock is not injectible. If it were to be made public, we could use the Mock
implementation to control expiration on our end, which would give us deterministic expiration in the cache.
I think the changes needed are fairly trivial:
- Make the
ClockType::Mock
publicly visible (we want to do DST outside of test cfg)Line 28 in 8dbc8e5
- Make Mock public
Line 141 in 8dbc8e5
Does this make sense?
Metadata
Metadata
Assignees
Labels
No labels