diff options
author | franck cuny <franck.cuny@rtgi.fr> | 2009-03-12 18:13:01 +0100 |
---|---|---|
committer | franck cuny <franck.cuny@rtgi.fr> | 2009-03-12 18:13:01 +0100 |
commit | 3fce0fd57ad0e009fdea99b50d4bdc1d92c03362 (patch) | |
tree | 27759a540ae64fd66281f5190e79055f43b881b5 | |
parent | tests (diff) | |
download | kiokudb-backend-memcachedb-3fce0fd57ad0e009fdea99b50d4bdc1d92c03362.tar.gz |
backend methods are always called in list context and :UnicodeSafe is not necessary with Serialize::Delegate
-rw-r--r-- | lib/KiokuDB/Backend/Memcachedb.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/KiokuDB/Backend/Memcachedb.pm b/lib/KiokuDB/Backend/Memcachedb.pm index 4a336cd..5502d29 100644 --- a/lib/KiokuDB/Backend/Memcachedb.pm +++ b/lib/KiokuDB/Backend/Memcachedb.pm @@ -13,7 +13,6 @@ our $VERSION = "0.01"; with qw( KiokuDB::Backend KiokuDB::Backend::Serialize::Delegate - KiokuDB::Backend::Role::UnicodeSafe KiokuDB::Backend::Role::TXN::Memory KiokuDB::Backend::Role::Concurrency::POSIX ); @@ -57,7 +56,7 @@ sub get { my $db = $self->db; my @objs = map { $self->deserialize( $db->get( $_ ) ) } @ids; - scalar @objs == 1 ? return shift @objs : @objs; + @jobs; } sub commit_entries { |