about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-07-07 13:51:22 +0200
committerfranck cuny <franck@lumberjaph.net>2010-07-07 13:51:22 +0200
commitfb5040f9d0e507449c121ea50f100bdd96a8e9c4 (patch)
tree4f0a182c0e71d44bc7b60164acb8c8aa1f903fee
parentupdate tests for worker_id; update REAMDE (diff)
downloadpresque-fb5040f9d0e507449c121ea50f100bdd96a8e9c4.tar.gz
use local redis by default
-rw-r--r--lib/presque.pm12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/presque.pm b/lib/presque.pm
index 50a0178..e173b0d 100644
--- a/lib/presque.pm
+++ b/lib/presque.pm
@@ -6,7 +6,17 @@ use AnyEvent::Redis;
 use Moose;
 extends 'Tatsumaki::Application';
 
-has config => (is => 'rw', isa => 'HashRef', lazy => 1, default => sub { });
+has config => (
+    is      => 'rw',
+    isa     => 'HashRef',
+    lazy    => 1,
+    default => sub {
+        redis => {
+            host => 'localhost',
+            port => 6379,
+        },
+    }
+);
 
 has redis => (
     is      => 'rw',