Catalyst-Plugin-Session-Store-Cache-0.01/000755 001751 001751 00000000000 10650402766 017576 5ustar00lbrlbr000000 000000 Catalyst-Plugin-Session-Store-Cache-0.01/META.yml000644 001751 001751 00000000571 10650402766 021052 0ustar00lbrlbr000000 000000 --- #YAML:1.0 name: Catalyst-Plugin-Session-Store-Cache version: 0.01 abstract: ~ license: ~ generated_by: ExtUtils::MakeMaker version 6.36 distribution_type: module requires: Catalyst::Plugin::Session: 0.06 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.2.html version: 1.2 Catalyst-Plugin-Session-Store-Cache-0.01/t/000755 001751 001751 00000000000 10650402766 020041 5ustar00lbrlbr000000 000000 Catalyst-Plugin-Session-Store-Cache-0.01/Makefile.PL000644 001751 001751 00000000407 10650402306 021537 0ustar00lbrlbr000000 000000 use ExtUtils::MakeMaker; WriteMakefile( NAME => 'Catalyst::Plugin::Session::Store::Cache', VERSION_FROM => 'lib/Catalyst/Plugin/Session/Store/Cache.pm', PREREQ_PM => { 'Catalyst::Plugin::Session' => '0.06', }, ); Catalyst-Plugin-Session-Store-Cache-0.01/Changes000644 001751 001751 00000000326 10650400005 021052 0ustar00lbrlbr000000 000000 Revision history for Perl extension Catalyst::Plugin::Session::Store::Cache. 0.01 Sat Jul 21 14:45:57 2007 - original version; created by h2xs 1.23 with options -AX -n Catalyst::Plugin::Session::Store::Cache Catalyst-Plugin-Session-Store-Cache-0.01/lib/000755 001751 001751 00000000000 10650402766 020344 5ustar00lbrlbr000000 000000 Catalyst-Plugin-Session-Store-Cache-0.01/MANIFEST000644 001751 001751 00000000165 10650402057 020722 0ustar00lbrlbr000000 000000 Changes Makefile.PL MANIFEST README t/01use.t t/02pod.t t/03podcoverage.t lib/Catalyst/Plugin/Session/Store/Cache.pm Catalyst-Plugin-Session-Store-Cache-0.01/README000644 001751 001751 00000002325 10650402333 020446 0ustar00lbrlbr000000 000000 Catalyst-Plugin-Session-Store-Cache version 0.01 ================================================ The README is used to introduce the module and provide instructions on how to install the module, any machine dependencies it may have (for example C compilers and installed libraries) and any other information that should be provided before the module is installed. A README file is required for CPAN modules since CPAN extracts the README file from a module distribution so that people browsing the archive can use it get an idea of the modules uses. It is usually a good idea to provide version information here so that people can decide whether fixes for the module are worth downloading. INSTALLATION To install this module type the following: perl Makefile.PL make make test make install DEPENDENCIES This module requires these other modules and libraries: Catalyst::Plugin::Session Some type of Catalyst::Plugin::Cache::... COPYRIGHT AND LICENCE Copyright (C) 2007 by Lars Balker Rasmussen This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. Catalyst-Plugin-Session-Store-Cache-0.01/lib/Catalyst/000755 001751 001751 00000000000 10650402766 022130 5ustar00lbrlbr000000 000000 Catalyst-Plugin-Session-Store-Cache-0.01/lib/Catalyst/Plugin/000755 001751 001751 00000000000 10650402766 023366 5ustar00lbrlbr000000 000000 Catalyst-Plugin-Session-Store-Cache-0.01/lib/Catalyst/Plugin/Session/000755 001751 001751 00000000000 10650402766 025011 5ustar00lbrlbr000000 000000 Catalyst-Plugin-Session-Store-Cache-0.01/lib/Catalyst/Plugin/Session/Store/000755 001751 001751 00000000000 10650402766 026105 5ustar00lbrlbr000000 000000 Catalyst-Plugin-Session-Store-Cache-0.01/lib/Catalyst/Plugin/Session/Store/Cache.pm000644 001751 001751 00000002723 10650400407 027440 0ustar00lbrlbr000000 000000 #!/usr/bin/perl package Catalyst::Plugin::Session::Store::Cache; use base qw/Catalyst::Plugin::Session::Store/; use strict; use warnings; our $VERSION = "0.01"; my $cache_key_prefix = "catalyst-plugin-session-store-cache:"; sub get_session_data { my ($c, $key) = @_; $c->cache->get($cache_key_prefix . $key); } sub store_session_data { my ($c, $key, $data) = @_; my $expires = $c->config->{session}{expires}; $c->cache->set($cache_key_prefix . $key, $data, $expires); } sub delete_session_data { my ( $c, $key ) = @_; $c->cache->remove($cache_key_prefix . $key); } sub delete_expired_sessions { } 1; __END__ =pod =head1 NAME Catalyst::Plugin::Session::Store::Cache - Store sessions using a Catalyst::Plugin::Cache =head1 SYNOPSIS use Catalyst qw/Cache::YourFavoriteCache Session Session::Store::Cache/; =head1 DESCRIPTION This plugin will store your session data in whatever cache module you have configured. =head1 METHODS See L. =over 4 =item get_session_data =item store_session_data =item delete_session_data =item delete_expired_sessions =back =head1 AUTHOR Lars Balker Rasmussen, Elbr@cpan.orgE =head1 COPYRIGHT AND LICENSE Copyright (C) 2007 by Lars Balker Rasmussen This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. =cut Catalyst-Plugin-Session-Store-Cache-0.01/t/01use.t000444 001751 001751 00000000144 10650401537 021153 0ustar00lbrlbr000000 000000 use strict; use Test::More tests => 1; BEGIN { use_ok('Catalyst::Plugin::Session::Store::Cache') } Catalyst-Plugin-Session-Store-Cache-0.01/t/03podcoverage.t000444 001751 001751 00000000325 10650362134 022657 0ustar00lbrlbr000000 000000 use Test::More; eval "use Test::Pod::Coverage 1.04"; plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@; plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD}; all_pod_coverage_ok(); Catalyst-Plugin-Session-Store-Cache-0.01/t/02pod.t000444 001751 001751 00000000276 10650362134 021147 0ustar00lbrlbr000000 000000 use Test::More; eval "use Test::Pod 1.14"; plan skip_all => 'Test::Pod 1.14 required' if $@; plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD}; all_pod_files_ok();