BSD Ports

devel/p5-Tie-Cache 0.21_1 FreeBSD

LRU Cache in Memory through a tie interface

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Categories
devel, perl5
Package size
11.7 KiB, 23.2 KiB installed

Description

From README: This module implements a least recently used (LRU) cache in memory through a tie interface. Any time data is stored in the tied hash, that key/value pair has an entry time associated with it, and as the cache fills up, those members of the cache that are the oldest are removed to make room for new entries.

So, the cache only "remembers" the last written entries, up to the size
of the cache. This can be especially useful if you access great amounts
of data, but only access a minority of the data a majority of the time.

The implementation is a hash, for quick lookups, overlaying a doubly
linked list for quick insertion and deletion. On a WinNT PII 300, writes
to the hash were done at a rate 3100 per second, and reads from the hash
at 6300 per second. Work has been done to optimize refreshing cache
entries that are frequently read from, code like $cache{entry}, which
moves the entry to the end of the linked list internally.

In the other systems

SystemPortVersion
FreeBSDdevel/p5-Tie-Cache0.21_1
OpenBSDdevel/p5-Tie-Cache0.21p0
NetBSDdevel/p5-Tie-Cache0.21nb12
DragonFlydevel/p5-Tie-Cache0.21_1
HardenedBSDdevel/p5-Tie-Cache0.21_1
GhostBSDdevel/p5-Tie-Cache0.21_1

Install

Binary package:

pkg install p5-Tie-Cache

From the ports tree:

cd /usr/ports/devel/p5-Tie-Cache/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Tie-Cache>0:devel/p5-Tie-Cache

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.21_10.21_10.21_10.21_10.21_1
FreeBSD:14:quarterly0.21_10.21_1n/a0.21_10.21_1
FreeBSD:15:latest0.21_10.21_1n/a0.21_10.21_1
FreeBSD:15:quarterly0.21_10.21_1n/an/an/a
FreeBSD:16:latest0.21_10.21_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
perl5 shebangfix
Service scripts
none

Files

pkg-plist 3
  • %%PERL5_MAN3%%/Tie::Cache.3.gz
  • %%SITE_PERL%%/Tie/Cache.pm
  • %%SITE_PERL%%/Tie/tie-cache-bench.pl
distinfo 1
FileSizeSHA256
Tie-Cache-0.21.tar.gz11200d7eaa22f35a21b226f2bfd17782cd4226a584a2364659cd7bf8b24fe37f6fe89
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.