summaryrefslogtreecommitdiffstats
path: root/sysutils/p5-LJ-Cache
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2001-03-31 01:57:06 +0000
committerwill <will@FreeBSD.org>2001-03-31 01:57:06 +0000
commit1d8e6a50d0b543e379d26a2160dab9849fc17b1a (patch)
treea21eb3f7d591c5cf55130e1be0ded2487203a4fe /sysutils/p5-LJ-Cache
parenta50c43fd88ac1c67412212ffb09bce029d30c6d9 (diff)
downloadFreeBSD-ports-1d8e6a50d0b543e379d26a2160dab9849fc17b1a.zip
FreeBSD-ports-1d8e6a50d0b543e379d26a2160dab9849fc17b1a.tar.gz
Add p5-LJ-Cache 1.0, a perl5 implementation of an LRU dictionary cache.
PR: 26086 Submitted by: Michael Johnson <ahze@ahze.net>
Diffstat (limited to 'sysutils/p5-LJ-Cache')
-rw-r--r--sysutils/p5-LJ-Cache/Makefile21
-rw-r--r--sysutils/p5-LJ-Cache/distinfo1
-rw-r--r--sysutils/p5-LJ-Cache/pkg-comment1
-rw-r--r--sysutils/p5-LJ-Cache/pkg-descr9
-rw-r--r--sysutils/p5-LJ-Cache/pkg-plist3
5 files changed, 35 insertions, 0 deletions
diff --git a/sysutils/p5-LJ-Cache/Makefile b/sysutils/p5-LJ-Cache/Makefile
new file mode 100644
index 0000000..fb52098
--- /dev/null
+++ b/sysutils/p5-LJ-Cache/Makefile
@@ -0,0 +1,21 @@
+# New ports collection makefile for: p5-LJ-Cache
+# Date created: 25 Mar 2001
+# Whom: Michael Johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+
+PORTNAME= LJ-Cache
+PORTVERSION= 1.0
+CATEGORIES= sysutils perl5
+MASTER_SITES= http://livejournal.com/files/code/cache/ \
+ ftp://ftp.livejournal.com/code/cache/
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= ahze@ahze.net
+
+PERL_CONFIGURE= yes
+
+MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+MAN3= LJ::Cache.3
+
+.include <bsd.port.mk>
diff --git a/sysutils/p5-LJ-Cache/distinfo b/sysutils/p5-LJ-Cache/distinfo
new file mode 100644
index 0000000..0bd3273
--- /dev/null
+++ b/sysutils/p5-LJ-Cache/distinfo
@@ -0,0 +1 @@
+MD5 (LJ-Cache-1.0.tar.gz) = a7d7c0b8c54239d72ba3647be0de1d14
diff --git a/sysutils/p5-LJ-Cache/pkg-comment b/sysutils/p5-LJ-Cache/pkg-comment
new file mode 100644
index 0000000..59e3117
--- /dev/null
+++ b/sysutils/p5-LJ-Cache/pkg-comment
@@ -0,0 +1 @@
+Perl5 implementation of an LRU dictionary cache
diff --git a/sysutils/p5-LJ-Cache/pkg-descr b/sysutils/p5-LJ-Cache/pkg-descr
new file mode 100644
index 0000000..3eed991
--- /dev/null
+++ b/sysutils/p5-LJ-Cache/pkg-descr
@@ -0,0 +1,9 @@
+This class implements an LRU dictionary cache. The two operations on it are
+get() and set(), both of which promote the key being referenced to the ``top''
+of the cache, so it will stay alive longest. When the cache is full and and a
+new item needs to be added, the oldest one is thrown away. You should be able
+to regenerate the data at any time, if get() returns undef. This class is
+useful for caching information from a slower data source while also keeping
+a bound on memory usage.
+
+WWW: http://livejournal.com/code/cache/
diff --git a/sysutils/p5-LJ-Cache/pkg-plist b/sysutils/p5-LJ-Cache/pkg-plist
new file mode 100644
index 0000000..4aba43e
--- /dev/null
+++ b/sysutils/p5-LJ-Cache/pkg-plist
@@ -0,0 +1,3 @@
+lib/perl5/site_perl/5.005/LJ/Cache.pm
+lib/perl5/site_perl/5.005/auto/LJ/Cache/autosplit.ix
+@dirrm lib/perl5/site_perl/5.005/auto/LJ/Cache/
OpenPOWER on IntegriCloud