Permalink
Browse files

small patch for redis connection handling

  • Loading branch information...
1 parent 8b72912 commit 223ff773a8d18f8a750ade1192c039ad8c02d869 @norbu09 committed May 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/True/Truth.pm
View
@@ -168,7 +168,7 @@ sub merge (@) {
sub _add {
my ($self, $key, $val, $index) = @_;
- $self->redis->ping || $self->_connect_redis;
+ $self->_connect_redis;
my $idx;
if($index){
$idx = $index;
@@ -185,7 +185,7 @@ sub _add {
sub _get {
my ($self, $key, $index) = @_;
- $self->redis->ping || $self->_connect_redis;
+ $self->_connect_redis;
if($index){
my $val = $self->redis->lindex($key, $index);
return thaw(decode_base64($val))

0 comments on commit 223ff77

Please sign in to comment.