File: Memory.pm

package info (click to toggle)
libcatalyst-plugin-cache-perl 0.12-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 264 kB
  • sloc: perl: 1,855; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/perl

package Catalyst::Plugin::Cache::Store::Memory;

use strict;
use warnings;

use Catalyst::Plugin::Cache::Backend::Memory;

sub setup_memory_cache_backend {
    my ( $app, $name ) = @_;
    $app->register_cache_backend( $name => Catalyst::Plugin::Cache::Backend::Memory->new );
}

__PACKAGE__;

__END__

=pod

=head1 NAME

Catalyst::Plugin::Cache::Store::Memory - Stupid memory based cache store plugin.

=head1 SYNOPSIS

	use Catalyst::Plugin::Cache::Store::Memory;

=head1 DESCRIPTION

=cut