[Catalyst-commits] r10393 - in trunk/examples/SmokeServer: . lib
lib/SmokeServer/View
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sat May 30 18:30:58 GMT 2009
Author: caelum
Date: 2009-05-30 18:30:57 +0000 (Sat, 30 May 2009)
New Revision: 10393
Modified:
trunk/examples/SmokeServer/Makefile.PL
trunk/examples/SmokeServer/lib/SmokeServer.pm
trunk/examples/SmokeServer/lib/SmokeServer/View/TT.pm
Log:
switch from fastmmap to memcached
Modified: trunk/examples/SmokeServer/Makefile.PL
===================================================================
--- trunk/examples/SmokeServer/Makefile.PL 2009-05-30 15:51:10 UTC (rev 10392)
+++ trunk/examples/SmokeServer/Makefile.PL 2009-05-30 18:30:57 UTC (rev 10393)
@@ -16,11 +16,12 @@
requires 'Data::Serializer' => '0';
requires 'Time::Duration::Object' => '0';
requires 'Test::use::ok' => '0';
-requires 'Catalyst::Plugin::Cache::FastMmap' => '0';
+requires 'Catalyst::Plugin::Cache' => '0';
+requires 'Cache::Memcached::libmemcached';
requires 'Catalyst::Plugin::HTML::Widget' => '0';
requires 'Catalyst::Plugin::Session' => '0';
requires 'Catalyst::Plugin::Session::State::Cookie' => '0';
-requires 'Catalyst::Plugin::Session::Store::FastMmap' => '0';
+requires 'Catalyst::Plugin::Session::Store::Memcached' => '0';
requires 'Catalyst::Plugin::Session::Defaults' => '0';
requires 'Catalyst::Plugin::Static::Simple' => '0';
requires 'Catalyst::Model::DBIC::Schema' => '0';
@@ -33,6 +34,7 @@
build_requires 'DBICx::Deploy';
catalyst_ignore 'cpan';
+no_index 'cpan';
catalyst;
install_script glob('script/*.pl');
Modified: trunk/examples/SmokeServer/lib/SmokeServer/View/TT.pm
===================================================================
--- trunk/examples/SmokeServer/lib/SmokeServer/View/TT.pm 2009-05-30 15:51:10 UTC (rev 10392)
+++ trunk/examples/SmokeServer/lib/SmokeServer/View/TT.pm 2009-05-30 18:30:57 UTC (rev 10393)
@@ -9,7 +9,7 @@
TEMPLATE_EXTENSION => ".tt",
INCLUDE_PATH => [ SmokeServer->path_to(qw/root templates/) ],
STASH => Template::Stash::XS->new,
- COMPILE_DIR => SmokeServer->path_to(qw/tmp template_cache/)->stringify,
+# COMPILE_DIR => SmokeServer->path_to(qw/tmp template_cache/)->stringify,
);
=head1 NAME
Modified: trunk/examples/SmokeServer/lib/SmokeServer.pm
===================================================================
--- trunk/examples/SmokeServer/lib/SmokeServer.pm 2009-05-30 15:51:10 UTC (rev 10392)
+++ trunk/examples/SmokeServer/lib/SmokeServer.pm 2009-05-30 18:30:57 UTC (rev 10393)
@@ -7,26 +7,33 @@
use Catalyst qw/
Static::Simple
- Cache::FastMmap
+ Cache
Session::Defaults
- Session
- Session::Store::FastMmap
- Session::State::Cookie
+ Session
+ Session::Store::Memcached
+ Session::State::Cookie
- HTML::Widget
+ HTML::Widget
/;
our $VERSION = '0.01';
__PACKAGE__->config( name => __PACKAGE__ );
-__PACKAGE__->config( cache => { storage => __PACKAGE__->path_to(qw/tmp matrix_cache/)->stringify } );
+
+#__PACKAGE__->config( cache => { storage => __PACKAGE__->path_to(qw/tmp matrix_cache/)->stringify } );
+
+__PACKAGE__->config->{'Plugin::Cache'}{backend} = {
+ class => 'Cache::Memcached::libmemcached',
+ servers => ['127.0.0.1:11211'],
+};
+
__PACKAGE__->config( static => { ignore_extensions => [ qw/tt/ ] } );
__PACKAGE__->config( session => {
expires => 60 * 60 * 24 * 365 * 10, # ten years
verify_address => 0,
- storage => __PACKAGE__->path_to(qw/tmp session/)->stringify,
+# storage => __PACKAGE__->path_to(qw/tmp session/)->stringify,
defaults => {
ignored_tags_cloud => [qw/version/],
default_group_tags => [qw/module version/],
More information about the Catalyst-commits
mailing list