diff options
author | will <will@FreeBSD.org> | 2001-04-07 12:30:12 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-04-07 12:30:12 +0800 |
commit | fcbf3cfb71e86dd8395c9e085be7ce46d33d999d (patch) | |
tree | e45b0594af05c58d40b203ce2351a017cd8ba737 | |
parent | 06915f6ac3351337ecb7bff61b3c06fc73f9ad72 (diff) | |
download | freebsd-ports-gnome-fcbf3cfb71e86dd8395c9e085be7ce46d33d999d.tar.gz freebsd-ports-gnome-fcbf3cfb71e86dd8395c9e085be7ce46d33d999d.tar.zst freebsd-ports-gnome-fcbf3cfb71e86dd8395c9e085be7ce46d33d999d.zip |
Add p5-Tie-Cache 0.15, LRU Cache in Memory through a tie interface.
PR: 26289
Submitted by: Alex Kapranoff <kapr@crosswinds.net>
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-Tie-Cache/Makefile | 24 | ||||
-rw-r--r-- | devel/p5-Tie-Cache/distinfo | 1 | ||||
-rw-r--r-- | devel/p5-Tie-Cache/pkg-comment | 1 | ||||
-rw-r--r-- | devel/p5-Tie-Cache/pkg-descr | 19 | ||||
-rw-r--r-- | devel/p5-Tie-Cache/pkg-plist | 5 |
6 files changed, 51 insertions, 0 deletions
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 <kapr@crosswinds.net> +# +# $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 <bsd.port.mk> 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 <kapr@crosswinds.net> 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 |