Skip to content

Thoughts on moving duration to ExpiringMap::new? #9

Description

@demoray

What are your thoughts on moving Duration to ExpiringMap::new such that each item has a consistent expiration window.

Something akin to this:

let mut x = ExpiringMap::new(Duration::from_secs(60));
x.insert("v", "b");

If you are ok with this idea, I'll happily submit a PR for it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions