lib/trifle/stats/driver/redis.rb in trifle-stats-0.4.1 vs lib/trifle/stats/driver/redis.rb in trifle-stats-1.0.0

- old
+ new

@@ -28,15 +28,17 @@ pkey = ([prefix] + key).join(separator) client.hmset(pkey, *self.class.pack(hash: values)) end - def get(key:) - pkey = ([prefix] + key).join(separator) + def get(keys:) + keys.map do |key| + pkey = ([prefix] + key).join(separator) - self.class.unpack( - hash: client.hgetall(pkey) - ) + self.class.unpack( + hash: client.hgetall(pkey) + ) + end end end end end end