Cache-Cascade
view release on metacpan or search on metacpan
lib/Cache/Cascade.pm view on Meta::CPAN
=head1 DESCRIPTION
=for stopwords tradeoff multiserver MemoryCache FastMmap
In a multiprocess, and especially a multiserver application caching is a very
effective means of improving results.
The tradeoff of increasing the scale of the caching is in added complexity.
For example, caching in a FastMmap based storage is much slower than using a
memory based cache, because pages must be locked to ensure that no corruption
will happen. Likewise Memcached is even more overhead than FastMmap because it
is network bound, and uses blocking IO (on the client side).
This module attempts to make a transparent cascade of caches using several
backends.
The idea is to search from the cheapest backend to the most expensive, and
depending on the options also cache results in the cheaper backends.
The benefits of using a cascade are that if the chance of a hit is much higher
( run in 1.005 second using v1.01-cache-2.11-cpan-49f99fa48dc )