use Cache.hash instead of Cache.sanitize

This commit is contained in:
r888888888
2017-08-24 15:43:38 -07:00
parent 18f617e08a
commit b769b83262
6 changed files with 10 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
class Cache
def self.get_multi(keys, prefix)
sanitized_key_to_key_hash = keys.map do |key|
["#{prefix}:#{Cache.sanitize(key)}", key]
["#{prefix}:#{Cache.hash(key)}", key]
end.to_h
sanitized_keys = sanitized_key_to_key_hash.keys