Hash::Timeout - Role for hashes whose elements timeout and disappear
my %cookies does Hash::Timeout[0.5];
%cookies<user001> = 'id';
say %cookies.elems; # prints 0
Hash::Timeout provides a
role that can be mixed with a
There's just one optional parameter, the timeout, which accepts fractional seconds and defaults to 1 hour.
Fernando Santagata firstname.lastname@example.org
COPYRIGHT AND LICENSE
Copyright 2018 Fernando Santagata
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.