GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Cache::LRU(3) User Contributed Perl Documentation Cache::LRU(3)

Cache::LRU - a simple, fast implementation of LRU cache in pure perl

    use Cache::LRU;

    my $cache = Cache::LRU->new(
        size => $max_num_of_entries,
    );

    $cache->set($key => $value);

    $value = $cache->get($key);

    $removed_value = $cache->remove($key);

Cache::LRU is a simple, fast implementation of an in-memory LRU cache in pure perl.

Creates a new cache object. Takes a hash as the only argument. The only parameter currently recognized is the "size" parameter that specifies the maximum number of entries to be stored within the cache object.

Returns the cached object if exists, or undef otherwise.

Stores the given key-value pair.

Removes data associated to the given key and returns the old value, if any.

Removes all entries from the cache.

Kazuho Oku

Cache

Cache::Ref

Tie::Cache::LRU

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>

2014-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.