Catalyst::Plugin::Cache::Curried - Curried versions of cache_set, cache_get and cache_remove that look more like a backend.
cache_set
cache_get
cache_remove
my $curried = $c->cache( %meta ); $curried->get( $key, $value ); # no need to specify %meta
See "META DATA" in Catalyst::Plugin::Cache for details.
Create a new curried cache, that captures %meta.
%meta
This calls choose_cache_backend on the $c object with the captured meta and the additional meta.
choose_cache_backend
Dellegate to the c object's cache_set, cache_get, cache_remove or cache_compute with the arguments, then the captured meta from meta, and then the additional meta.
c
cache_compute
meta
Returns the array ref that captured %meta from new.
new
The captured $c object to delegate to.
To install Catalyst::Plugin::Cache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Cache
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Cache
For more information on module installation, please visit the detailed CPAN module installation guide.