/usr/share/doc/libcache-lru-perl/README is in libcache-lru-perl 0.04-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | NAME
Cache::LRU - a simple, fast implementation of LRU cache in pure perl
SYNOPSIS
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);
DESCRIPTION
Cache::LRU is a simple, fast implementation of an in-memory LRU cache in
pure perl.
FUNCTIONS
Cache::LRU->new(size => $max_num_of_entries)
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.
$cache->get($key)
Returns the cached object if exists, or undef otherwise.
$cache->set($key => $value)
Stores the given key-value pair.
$cache->remove($key)
Removes data associated to the given key and returns the old value, if
any.
$cache->clear($key)
Removes all entries from the cache.
AUTHOR
Kazuho Oku
SEE ALSO
Cache
Cache::Ref
Tie::Cache::LRU
LICENSE
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>
|