From 1d8e6a50d0b543e379d26a2160dab9849fc17b1a Mon Sep 17 00:00:00 2001 From: will Date: Sat, 31 Mar 2001 01:57:06 +0000 Subject: Add p5-LJ-Cache 1.0, a perl5 implementation of an LRU dictionary cache. PR: 26086 Submitted by: Michael Johnson --- sysutils/Makefile | 1 + sysutils/p5-LJ-Cache/Makefile | 21 +++++++++++++++++++++ sysutils/p5-LJ-Cache/distinfo | 1 + sysutils/p5-LJ-Cache/pkg-comment | 1 + sysutils/p5-LJ-Cache/pkg-descr | 9 +++++++++ sysutils/p5-LJ-Cache/pkg-plist | 3 +++ 6 files changed, 36 insertions(+) create mode 100644 sysutils/p5-LJ-Cache/Makefile create mode 100644 sysutils/p5-LJ-Cache/distinfo create mode 100644 sysutils/p5-LJ-Cache/pkg-comment create mode 100644 sysutils/p5-LJ-Cache/pkg-descr create mode 100644 sysutils/p5-LJ-Cache/pkg-plist (limited to 'sysutils') diff --git a/sysutils/Makefile b/sysutils/Makefile index 1b541261366..c428c4a2fc4 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -81,6 +81,7 @@ SUBDIR += nwclient SUBDIR += obliterate SUBDIR += p5-Filesys-DiskSpace + SUBDIR += p5-LJ-Cache SUBDIR += p5-Quota SUBDIR += p5-Schedule-At SUBDIR += p5-Schedule-Cron diff --git a/sysutils/p5-LJ-Cache/Makefile b/sysutils/p5-LJ-Cache/Makefile new file mode 100644 index 00000000000..fb520986d0e --- /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 +# +# $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 diff --git a/sysutils/p5-LJ-Cache/distinfo b/sysutils/p5-LJ-Cache/distinfo new file mode 100644 index 00000000000..0bd32731be5 --- /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 00000000000..59e3117ac8f --- /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 00000000000..3eed991e718 --- /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 00000000000..4aba43e395d --- /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/ -- cgit