summaryrefslogtreecommitdiff
path: root/devel/p5-Tie-Cache
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-04-07 04:30:12 +0000
committerWill Andrews <will@FreeBSD.org>2001-04-07 04:30:12 +0000
commit78864e8862e2a5f17e83a7d35397c1779e0a7e8e (patch)
treeb5d3b51cef2371f9ec02569f5c9b4cf5e8b4f2cd /devel/p5-Tie-Cache
parentAdd mod_auth_pam 1.0a, an apache module which allows users to use PAM (diff)
Add p5-Tie-Cache 0.15, LRU Cache in Memory through a tie interface.
PR: 26289 Submitted by: Alex Kapranoff <kapr@crosswinds.net>
Notes
Notes: svn path=/head/; revision=40992
Diffstat (limited to 'devel/p5-Tie-Cache')
-rw-r--r--devel/p5-Tie-Cache/Makefile24
-rw-r--r--devel/p5-Tie-Cache/distinfo1
-rw-r--r--devel/p5-Tie-Cache/pkg-comment1
-rw-r--r--devel/p5-Tie-Cache/pkg-descr19
-rw-r--r--devel/p5-Tie-Cache/pkg-plist5
5 files changed, 50 insertions, 0 deletions
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