Skip to content

FR: Add an expiring Multimap #16

@Dietr1ch

Description

@Dietr1ch

Would you consider adding an expiring multimap?

A multimap allows multiple values for a given key, so it behaves like a HashMap<K, HashSet> with a nice interface to iterate over values for a given key, but when considering expiration that trick doesn't behave nicely as expiration should be per value, and not per key and shared across its values.

My use case is holding DNS/mDNS records, where for instance in address records, you'll have (hostname, IP) entries with different TTLs, and possibly multiple IPs for the same hostname (IPv4, IPv6, public and private IPs).

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