-
-
25 Feb 2013 14:45:52 UTC
- Distribution: Catalyst-Plugin-Cache
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Clone repository
- Issues (6)
- Testers (2131 / 13 / 0)
- Kwalitee
Bus factor: 7- 51.43% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (28.42KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Catalyst
- MRO::Compat
- Storable
- Task::Weaken
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Plugin::Cache::Curried - Curried versions of
cache_set
,cache_get
andcache_remove
that look more like a backend.SYNOPSIS
my $curried = $c->cache( %meta ); $curried->get( $key, $value ); # no need to specify %meta
DESCRIPTION
See "META DATA" in Catalyst::Plugin::Cache for details.
METHODS
- new %meta
-
Create a new curried cache, that captures
%meta
. - backend %additional_meta
-
This calls
choose_cache_backend
on the $c object with the captured meta and the additional meta. - set $key, $value, %additional_meta
- get $key, %additional_meta
- remove $key, %additional_meta
- compute $key, $code, %additional_meta
-
Dellegate to the
c
object'scache_set
,cache_get
,cache_remove
orcache_compute
with the arguments, then the captured meta frommeta
, and then the additional meta. - meta
-
Returns the array ref that captured %meta from
new
. - c
-
The captured $c object to delegate to.
Module Install Instructions
To install Catalyst::Plugin::Cache, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Plugin::Cache
perl -MCPAN -e shell install Catalyst::Plugin::Cache
For more information on module installation, please visit the detailed CPAN module installation guide.