summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2014-04-02 19:27:33 +0000
committerschmonz <schmonz@pkgsrc.org>2014-04-02 19:27:33 +0000
commit95f5226ae146488feb3d0941581a661b1dc9d747 (patch)
treea9c577ee4c45757c03a6d120fc2d65e7f51360c2 /devel
parent69c8a73e3d02b37996d349839d19d29af5929c86 (diff)
downloadpkgsrc-95f5226ae146488feb3d0941581a661b1dc9d747.tar.gz
Add p5-CHI.
CHI provides a unified caching API, designed to assist a developer in persisting data for a specified period of time. The CHI interface is implemented by driver classes that support fetching, storing and clearing of data. Driver classes exist or will exist for the gamut of storage backends available to Perl, such as memory, plain files, memory mapped files, memcached, and DBI. CHI is intended as an evolution of DeWitt Clinton's Cache::Cache package, adhering to the basic Cache API but adding new features and addressing limitations in the Cache::Cache implementation. * Easy to create new drivers * Uniform support for namespaces * Automatic serialization of keys and values * Multilevel caches * Probabilistic expiration and busy locks, to reduce cache miss stampedes * Optional logging and statistics collection of cache activity
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-CHI/DESCR19
-rw-r--r--devel/p5-CHI/Makefile36
-rw-r--r--devel/p5-CHI/distinfo5
3 files changed, 60 insertions, 0 deletions
diff --git a/devel/p5-CHI/DESCR b/devel/p5-CHI/DESCR
new file mode 100644
index 00000000000..f00d07aaa3b
--- /dev/null
+++ b/devel/p5-CHI/DESCR
@@ -0,0 +1,19 @@
+CHI provides a unified caching API, designed to assist a developer
+in persisting data for a specified period of time.
+
+The CHI interface is implemented by driver classes that support
+fetching, storing and clearing of data. Driver classes exist or
+will exist for the gamut of storage backends available to Perl,
+such as memory, plain files, memory mapped files, memcached, and
+DBI.
+
+CHI is intended as an evolution of DeWitt Clinton's Cache::Cache
+package, adhering to the basic Cache API but adding new features
+and addressing limitations in the Cache::Cache implementation.
+
+* Easy to create new drivers
+* Uniform support for namespaces
+* Automatic serialization of keys and values
+* Multilevel caches
+* Probabilistic expiration and busy locks, to reduce cache miss stampedes
+* Optional logging and statistics collection of cache activity
diff --git a/devel/p5-CHI/Makefile b/devel/p5-CHI/Makefile
new file mode 100644
index 00000000000..67da5f094f9
--- /dev/null
+++ b/devel/p5-CHI/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2014/04/02 19:27:33 schmonz Exp $
+
+DISTNAME= CHI-0.58
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=CHI/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/CHI/
+COMMENT= Unified cache handling interface
+LICENSE= ${PERL5_LICENSE}
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/CHI/.packlist
+
+DEPENDS+= p5-Carp-Assert>=0.20:../../devel/p5-Carp-Assert
+DEPENDS+= p5-Data-UUID-[0-9]*:../../devel/p5-Data-UUID
+DEPENDS+= p5-Digest-JHash-[0-9]*:../../security/p5-Digest-JHash
+DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5
+DEPENDS+= p5-Hash-MoreUtils-[0-9]*:../../devel/p5-Hash-MoreUtils
+DEPENDS+= p5-JSON-[0-9]*:../../converters/p5-JSON
+DEPENDS+= p5-List-MoreUtils>=0.13:../../devel/p5-List-MoreUtils
+DEPENDS+= p5-Log-Any>=0.08:../../devel/p5-Log-Any
+DEPENDS+= p5-Moo>=1.003:../../devel/p5-Moo
+DEPENDS+= p5-MooX-Types-MooseLike>=0.23:../../devel/p5-MooX-Types-MooseLike
+DEPENDS+= p5-MooX-Types-MooseLike-Numeric-[0-9]*:../../devel/p5-MooX-Types-MooseLike-Numeric
+DEPENDS+= p5-Storable-[0-9]*:../../devel/p5-Storable
+DEPENDS+= p5-String-RewritePrefix-[0-9]*:../../textproc/p5-String-RewritePrefix
+DEPENDS+= p5-Task-Weaken-[0-9]*:../../devel/p5-Task-Weaken
+DEPENDS+= p5-Time-Duration>=1.06:../../time/p5-Time-Duration
+DEPENDS+= p5-Time-Duration-Parse>=0.03:../../time/p5-Time-Duration-Parse
+DEPENDS+= p5-Time-HiRes>=1.30:../../time/p5-Time-HiRes
+DEPENDS+= p5-Try-Tiny>=0.05:../../devel/p5-Try-Tiny
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-CHI/distinfo b/devel/p5-CHI/distinfo
new file mode 100644
index 00000000000..7b887c0433a
--- /dev/null
+++ b/devel/p5-CHI/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/04/02 19:27:33 schmonz Exp $
+
+SHA1 (CHI-0.58.tar.gz) = d6734142a113cbb0245846bff90e04f1df2e0452
+RMD160 (CHI-0.58.tar.gz) = 5e4dc30e0b311f44bf52c7b68165f115e8e582f6
+Size (CHI-0.58.tar.gz) = 84407 bytes