Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Feb 5, 2013
1 parent 5bf43af commit 2d6fff4
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions server/lib/picky/backends/redis/list.rb
Expand Up @@ -38,16 +38,14 @@ def delete key
def dump hash
unless @realtime
clear
# client.pipelined do
hash.each_pair do |key, values|
redis_key = "#{namespace}:#{key}"
i = 0
values.each do |value|
i += 1
client.zadd redis_key, i, value
end
hash.each_pair do |key, values|
redis_key = "#{namespace}:#{key}"
i = 0
values.each do |value|
i += 1
client.zadd redis_key, i, value
end
# end
end
end
end

Expand All @@ -72,7 +70,6 @@ def []= key, values
i += 1
client.zadd redis_key, i, value
end

DirectlyManipulable.make self, values, key
values
end
Expand Down

0 comments on commit 2d6fff4

Please sign in to comment.