libtie-hash-expire-perl

Perl module providing hashes with keys that expire after a user-set period
  https://metacpan.org/release/Tie-Hash-Expire
  0
  no reviews



Hashes tied to tie::hash::expire behave like normal hashes in all respects except that when a key is added or the value associated with a key is changed, the current time is stored, and after 'expire_seconds' the key and value are removed from the hash.

resolutions finer than seconds are available if the module finds access to time::hires.