1Catalyst::Plugin::CacheU:s:eCrurCroinetdr(i3b)uted PerlCDaotcaulmyesntt:a:tPiloungin::Cache::Curried(3)
2
3
4
6 Catalyst::Plugin::Cache::Curried - Curried versions of "cache_set",
7 "cache_get" and "cache_remove" that look more like a backend.
8
10 my $curried = $c->cache( %meta );
11
12 $curried->get( $key, $value ); # no need to specify %meta
13
15 See "META DATA" in Catalyst::Plugin::Cache for details.
16
18 new %meta
19 Create a new curried cache, that captures %meta.
20
21 backend %additional_meta
22 This calls "choose_cache_backend" on the $c object with the
23 captured meta and the additional meta.
24
25 set $key, $value, %additional_meta
26 get $key, %additional_meta
27 remove $key, %additional_meta
28 compute $key, $code, %additional_meta
29 Dellegate to the "c" object's "cache_set", "cache_get",
30 "cache_remove" or "cache_compute" with the arguments, then the
31 captured meta from "meta", and then the additional meta.
32
33 meta
34 Returns the array ref that captured %meta from "new".
35
36 c The captured $c object to delegate to.
37
38
39
40perl v5.34.0 2022-01-21Catalyst::Plugin::Cache::Curried(3)