8000 Allow applications to inject their own clock for TTL/TTI for DST · Issue #522 · moka-rs/moka · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow applications to inject their own clock for TTL/TTI for DST #522
Open
@criccomini

Description

@criccomini

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:

Does this make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0