GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CATALYST::PLUGIN::CACHE::STORE (3)

.ds Aq ’

NAME

Catalyst::Plugin::Cache::Store - how to write a Cache store plugin.

CONTENTS

SYNOPSIS



    package Catalyst::Plugin::Cache::Store::Frobnicator;

    sub setup_frobnicator_cache_backend {
        my ( $app, $name, $config ) = @_;

        ....
       
        $app->register_cache_backend( $name => $cache_object );
    }



DESCRIPTION

In order to write a cache store plugin, all you need is to implement a method following the naming convention:



    setup_<<lower case store name>>_cache_backend {

    }



For example setup_fastmmap_cache_backend for Catalyst::Plugin::Cache::Store::FastMmap.

and call register_cache_backend from within that.

The method will get the backend name and configuration as it’s first and second arguments.

All invokation of the setup methods will be automatic, based on the configuration. However, the plugin must be loaded by the user.

Note that store plugins are only necessary if some configuration defaults that are catalyst specific need to be provided.

For most cases simply using a cache class instead of a plugin is sufficient.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CATALYST::PLUGIN::CACHE::STORE (3) 2012-03-13

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.