lib/looksist/redis_service.rb in looksist-0.0.2 vs lib/looksist/redis_service.rb in looksist-0.0.3

- old
+ new

@@ -33,10 +33,10 @@ @client.pipelined do ids.uniq.each do |id| find(entity, id) end end - ids.each_with_object([]) { |k, acc| acc << cache[redis_key(entity, k)] } + ids.each_with_object([]) { |k, acc| acc << cache[redis_key(entity, k)].value } end def hit_or_miss(key, &block) @cache[key] ||= lru(&block) end