AnyEvent-InMemoryCache
view release on metacpan or search on metacpan
Thus, I wrote this module.
## ADVANTAGE
This module is completely event-driven. That is, it only checks and expires values when the expiration
time comes. That gives us performance advantage because it need not to check validity of values every
time it fetches values. Also, this can free allocated memory as soon as each value is expired.
## DISADVANTAGE
This module simply does not work unless you use AnyEvent framework correctly.
# METHODS
## `$class->new( expires_in => $duration )`
Creates new AnyEvent::InMemoryCache object.
- `expires_in` (optional)
Specify default lifetime of cached values.
lib/AnyEvent/InMemoryCache.pm view on Meta::CPAN
Thus, I wrote this module.
=head2 ADVANTAGE
This module is completely event-driven. That is, it only checks and expires values when the expiration
time comes. That gives us performance advantage because it need not to check validity of values every
time it fetches values. Also, this can free allocated memory as soon as each value is expired.
=head2 DISADVANTAGE
This module simply does not work unless you use AnyEvent framework correctly.
=head1 METHODS
=head2 C<$class-E<gt>new( expires_in =E<gt> $duration )>
Creates new AnyEvent::InMemoryCache object.
=over
=item C<expires_in> (optional)
( run in 1.432 second using v1.01-cache-2.11-cpan-13bb782fe5a )