Crate expiringdict

Crate expiringdict 

Source
Expand description

A dict / HashMap whose items expire over time

This is a simple wrapper over HashMap and when you call its expire() method, items inserted early expire and disappear.

There is no external dependency like tokio or the like, but you need to call expire() at appropriate time.

Structs§

ExpiringDict

Traits§

TimeNow