From 78864e8862e2a5f17e83a7d35397c1779e0a7e8e Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Sat, 7 Apr 2001 04:30:12 +0000 Subject: Add p5-Tie-Cache 0.15, LRU Cache in Memory through a tie interface. PR: 26289 Submitted by: Alex Kapranoff --- devel/Makefile | 1 + devel/p5-Tie-Cache/Makefile | 24 ++++++++++++++++++++++++ devel/p5-Tie-Cache/distinfo | 1 + devel/p5-Tie-Cache/pkg-comment | 1 + devel/p5-Tie-Cache/pkg-descr | 19 +++++++++++++++++++ devel/p5-Tie-Cache/pkg-plist | 5 +++++ 6 files changed, 51 insertions(+) create mode 100644 devel/p5-Tie-Cache/Makefile create mode 100644 devel/p5-Tie-Cache/distinfo create mode 100644 devel/p5-Tie-Cache/pkg-comment create mode 100644 devel/p5-Tie-Cache/pkg-descr create mode 100644 devel/p5-Tie-Cache/pkg-plist (limited to 'devel') diff --git a/devel/Makefile b/devel/Makefile index e11b579aba19..626f3ada1766 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -325,6 +325,7 @@ SUBDIR += p5-Term-ReadKey SUBDIR += p5-Term-Screen SUBDIR += p5-Term-Size + SUBDIR += p5-Tie-Cache SUBDIR += p5-Tie-DB_FileLock SUBDIR += p5-Tie-IxHash SUBDIR += p5-Time diff --git a/devel/p5-Tie-Cache/Makefile b/devel/p5-Tie-Cache/Makefile new file mode 100644 index 000000000000..62dea6ecf0fb --- /dev/null +++ b/devel/p5-Tie-Cache/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: p5-Tie-Cache +# Date created: March 30th 2001 +# Whom: Alex Kapranoff +# +# $FreeBSD$ +# + +PORTNAME= Tie-Cache +PORTVERSION= 0.15 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Tie +PKGNAMEPREFIX= p5- + +MAINTAINER= kapr@crosswinds.net + +PERL_CONFIGURE= yes + +INSTALL_TARGET= pure_install + +MAN3= Tie::Cache.3 +MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} + +.include diff --git a/devel/p5-Tie-Cache/distinfo b/devel/p5-Tie-Cache/distinfo new file mode 100644 index 000000000000..d421fd0b0476 --- /dev/null +++ b/devel/p5-Tie-Cache/distinfo @@ -0,0 +1 @@ +MD5 (Tie-Cache-0.15.tar.gz) = 8a1669f2621834dfb6cbf4a52eacbaf1 diff --git a/devel/p5-Tie-Cache/pkg-comment b/devel/p5-Tie-Cache/pkg-comment new file mode 100644 index 000000000000..7dbc78d4995e --- /dev/null +++ b/devel/p5-Tie-Cache/pkg-comment @@ -0,0 +1 @@ +LRU Cache in Memory through a tie interface diff --git a/devel/p5-Tie-Cache/pkg-descr b/devel/p5-Tie-Cache/pkg-descr new file mode 100644 index 000000000000..871dc9553fec --- /dev/null +++ b/devel/p5-Tie-Cache/pkg-descr @@ -0,0 +1,19 @@ +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. + +-- Alex Kapranoff diff --git a/devel/p5-Tie-Cache/pkg-plist b/devel/p5-Tie-Cache/pkg-plist new file mode 100644 index 000000000000..cbeec81dff08 --- /dev/null +++ b/devel/p5-Tie-Cache/pkg-plist @@ -0,0 +1,5 @@ +lib/perl5/site_perl/%%PERL_VER%%/Tie/Cache.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/Cache/.packlist +@unexec rmdir lib/perl5/site_perl/%%PERL_VER%%/Tie 2>/dev/null || true +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/Cache +@unexec rmdir lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie 2>/dev/null || true -- cgit v1.2.3