AnyEvent-DNS-Cache-Simple
view release on metacpan or search on metacpan
}
undef $guard;
# DESCRIPTION
AnyEvent::DNS::Cache::Simple provides simple cache capability for AnyEvent::DNS
CPAN already has AnyEvent::CacheDNS module. It also provides simple cache.
AnyEvent::DNS::Cache::Simple support ttl, negative\_ttl and can use with any cache module.
And AnyEvent::DNS::Cache::Simple does not use AnyEvent->timer for purging cache.
# METHOD
## register
Register cache to `$AnyEvent::DNS::RESOLVER`. This method returns guard object.
If the guard object is destroyed, original resolver will be restored
register can accept all `AnyEvent::DNS-`new> arguments and has some additional arguments.
lib/AnyEvent/DNS/Cache/Simple.pm view on Meta::CPAN
}
undef $guard;
=head1 DESCRIPTION
AnyEvent::DNS::Cache::Simple provides simple cache capability for AnyEvent::DNS
CPAN already has AnyEvent::CacheDNS module. It also provides simple cache.
AnyEvent::DNS::Cache::Simple support ttl, negative_ttl and can use with any cache module.
And AnyEvent::DNS::Cache::Simple does not use AnyEvent->timer for purging cache.
=head1 METHOD
=head2 register
Register cache to C<$AnyEvent::DNS::RESOLVER>. This method returns guard object.
If the guard object is destroyed, original resolver will be restored
register can accept all C<AnyEvent::DNS->new> arguments and has some additional arguments.
( run in 1.084 second using v1.01-cache-2.11-cpan-49f99fa48dc )