Bill Moseley wrote:
> What's the status of the Cache plugin(s) wrt. backends?
>
> I want to be able to swap between FastMmap and Memcached via a config
> option
As per the docs:

    # configure a backend or use a store plugin 
    __PACKAGE__->config->{cache}{backend} = {
        class => "Cache::FastMmap",
        # ... params ...
    };

or

    # configure a backend or use a store plugin 
    __PACKAGE__->config->{cache}{backend} = {
        class => "Cache::Memcached::Managed",
        # ... params ...
    };


Feel free to refactor that however you like.  But the idea is that
C::P::Cache doesn't care what backend you use.

Regards,
Jonathan Rockway

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to