Date: Mon, 2 Apr 2001 15:48:47 +0400 (MSD) From: Alex Kapranoff <kappa@zombie.antar.bryansk.ru> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/26289: [New port] p5-Tie-Cache - LRU cache in memory Message-ID: <200104021148.f32BmlX18680@zombie.antar.bryansk.ru>
next in thread | raw e-mail | index | archive | help
>Number: 26289 >Category: ports >Synopsis: [New port] p5-Tie-Cache - LRU cache in memory >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Apr 02 04:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Alex Kapranoff >Release: FreeBSD 4.3-RC i386 >Organization: Inner Mongolia >Environment: System: FreeBSD zombie.antar.bryansk.ru 4.3-RC FreeBSD 4.3-RC #5: Mon Mar 26 12:42:11 MSD 2001 root@zombie.antar.bryansk.ru:/usr/src/sys/compile/ZOMBIE i386 >Description: >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Tie-Cache/ # p5-Tie-Cache/Makefile # p5-Tie-Cache/distinfo # p5-Tie-Cache/pkg-comment # p5-Tie-Cache/pkg-descr # p5-Tie-Cache/pkg-plist # echo c - p5-Tie-Cache/ mkdir -p p5-Tie-Cache/ > /dev/null 2>&1 echo x - p5-Tie-Cache/Makefile sed 's/^X//' >p5-Tie-Cache/Makefile << 'END-of-p5-Tie-Cache/Makefile' X# New ports collection makefile for: p5-Tie-Cache X# Date created: March 30th 2001 X# Whom: Alex Kapranoff <kapr@crosswinds.net> X# X# $FreeBSD$ X# X XPORTNAME= Tie-Cache XPORTVERSION= 0.15 XCATEGORIES= devel perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= Tie XPKGNAMEPREFIX= p5- X XMAINTAINER= kapr@crosswinds.net X XPERL_CONFIGURE= yes X XINSTALL_TARGET= pure_install X XMAN3= Tie::Cache.3 XMANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} X X.include <bsd.port.mk> END-of-p5-Tie-Cache/Makefile echo x - p5-Tie-Cache/distinfo sed 's/^X//' >p5-Tie-Cache/distinfo << 'END-of-p5-Tie-Cache/distinfo' XMD5 (Tie-Cache-0.15.tar.gz) = 8a1669f2621834dfb6cbf4a52eacbaf1 END-of-p5-Tie-Cache/distinfo echo x - p5-Tie-Cache/pkg-comment sed 's/^X//' >p5-Tie-Cache/pkg-comment << 'END-of-p5-Tie-Cache/pkg-comment' XTie::Cache - LRU Cache in Memory through a tie interface END-of-p5-Tie-Cache/pkg-comment echo x - p5-Tie-Cache/pkg-descr sed 's/^X//' >p5-Tie-Cache/pkg-descr << 'END-of-p5-Tie-Cache/pkg-descr' XFrom README: X This module implements a least recently used (LRU) cache in memory X through a tie interface. Any time data is stored in the tied hash, that X key/value pair has an entry time associated with it, and as the cache X fills up, those members of the cache that are the oldest are removed to X make room for new entries. X X So, the cache only "remembers" the last written entries, up to the size X of the cache. This can be especially useful if you access great amounts X of data, but only access a minority of the data a majority of the time. X X The implementation is a hash, for quick lookups, overlaying a doubly X linked list for quick insertion and deletion. On a WinNT PII 300, writes X to the hash were done at a rate 3100 per second, and reads from the hash X at 6300 per second. Work has been done to optimize refreshing cache X entries that are frequently read from, code like $cache{entry}, which X moves the entry to the end of the linked list internally. X X-- Alex Kapranoff <kapr@crosswinds.net> END-of-p5-Tie-Cache/pkg-descr echo x - p5-Tie-Cache/pkg-plist sed 's/^X//' >p5-Tie-Cache/pkg-plist << 'END-of-p5-Tie-Cache/pkg-plist' Xlib/perl5/site_perl/%%PERL_VER%%/Tie/Cache.pm X@unexec rmdir lib/perl5/site_perl/%%PERL_VER%%/Tie 2>/dev/null || true Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/Cache/.packlist X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/Cache END-of-p5-Tie-Cache/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104021148.f32BmlX18680>