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  -  PLACK::SESSION::STORE::CACHE (3)

.ds Aq ’

NAME

Plack::Session::Store::Cache - Cache session store

CONTENTS

SYNOPSIS



  use Plack::Builder;
  use Plack::Session::Store::Cache;
  use CHI;

  my $app = sub {
      return [ 200, [ Content-Type => text/plain ], [ Hello Foo ] ];
  };

  builder {
      enable Session,
          store => Plack::Session::Store::Cache->new(
              cache => CHI->new(driver => FastMmap)
          );
      $app;
  };



DESCRIPTION

This will persist session data using any module which implements the Cache interface. This offers a lot of flexibility due to the many excellent Cache, Cache::Cache and CHI drivers available.

This is a subclass of Plack::Session::Store and implements its full interface.

METHODS

<B>new ( B>%params<B> )B> The constructor expects the cache param to be an object instance which has the get, set, and remove methods, it will throw an exception if that is not the case.
<B>cacheB> A simple accessor for the cache handle.

BUGS

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

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


perl v5.20.3 PLACK::SESSION::STORE::CACHE (3) 2015-03-02

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