---
name: "Catalyst::Plugin::Cache::Curried"
section: "3pm"
platform: "linux"
package: "libcatalyst-plugin-cache-perl"
version: "0.12-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catalyst::Plugin::Cache::Curried"
---

# Catalyst::Plugin::Cache::Curried(3pm)

Curried versions of "cache\_set", "cache\_get" and "cache\_remove" that look more like a backend.

## NAME

Catalyst::Plugin::Cache::Curried - Curried versions of "cache\_set", "cache\_get" and "cache\_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's `"cache_set"`, `"cache_get"`, `"cache_remove"` or `"cache_compute"` with the arguments, then the captured meta from `"meta"`, and then the additional meta.

- meta

  Returns the array ref that captured `%meta` from `"new"`.

- c

  The captured `$c` object to delegate to.
