Skip to content

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

@demoray

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.

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