diff --git a/devel/p5-Tie-Cache/Makefile b/devel/p5-Tie-Cache/Makefile new file mode 100644 index 00000000000..46283293ccd --- /dev/null +++ b/devel/p5-Tie-Cache/Makefile @@ -0,0 +1,14 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/09/25 22:11:54 merdely Exp $ +COMMENT= LRU cache in memory + +MODULES= cpan +DISTNAME= Tie-Cache-0.17 +CATEGORIES= devel + +# perl +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +.include diff --git a/devel/p5-Tie-Cache/distinfo b/devel/p5-Tie-Cache/distinfo new file mode 100644 index 00000000000..d227cb44ac6 --- /dev/null +++ b/devel/p5-Tie-Cache/distinfo @@ -0,0 +1,5 @@ +MD5 (Tie-Cache-0.17.tar.gz) = k/G7gAaBWt4k/eMJklzr4A== +RMD160 (Tie-Cache-0.17.tar.gz) = fj/R/poAxP4WJ8N2jQi0dsHer5M= +SHA1 (Tie-Cache-0.17.tar.gz) = SKiTIe7G+MU9NhaTwD5UtfSmh8c= +SHA256 (Tie-Cache-0.17.tar.gz) = Rx0m/N+csjUE8+VCU+VJVwfPJwyu3tX8d38gbhkC59k= +SIZE (Tie-Cache-0.17.tar.gz) = 11627 diff --git a/devel/p5-Tie-Cache/pkg/DESCR b/devel/p5-Tie-Cache/pkg/DESCR new file mode 100644 index 00000000000..d318afe2d13 --- /dev/null +++ b/devel/p5-Tie-Cache/pkg/DESCR @@ -0,0 +1,9 @@ +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. diff --git a/devel/p5-Tie-Cache/pkg/PLIST b/devel/p5-Tie-Cache/pkg/PLIST new file mode 100644 index 00000000000..4257d33518b --- /dev/null +++ b/devel/p5-Tie-Cache/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/09/25 22:11:54 merdely Exp $ +${P5SITE}/Tie/ +${P5SITE}/Tie/Cache.pm +${P5SITE}/Tie/bench.pl +@man man/man3p/Tie::Cache.3p