Take me over?The maintainer of this distribution is looking for someone to take over! If you're interested then please contact them via email.
Cache::Ref::LIFO - Saves entries until full, discarding subsequent sets.
my $c = Cache::Ref::LIFO->new( size => $n ); $c->set( foo => 42 ); $c->get("foo");
This is a very naive cache algorithm, it saves cache sets until the cache is full, at which point all additional saves which aren't a value update are discarded immediately.
For very predictable workflows this is potentially a good fit, provided the MFU is used early on.
The advantages is that the code is very simple as a result.
This software is copyright (c) 2011 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.