lib/cache/adapters/memory_adapter.rb in splitclient-rb-3.1.0.pre.rc5 vs lib/cache/adapters/memory_adapter.rb in splitclient-rb-3.1.0.pre.rc6

- old
+ new

@@ -56,10 +56,16 @@ def find_strings_by_prefix(prefix) @map.keys.select { |str| str.start_with? prefix } end + def multiple_strings(keys) + keys.each_with_object({}) do |key, memo| + memo[key] = string(key) + end + end + # Bool def set_bool(key, val) @map[key] = val end @@ -85,10 +91,10 @@ def exists?(key) !@map[key].nil? end def delete(key) - @map[key] = nil + @map.delete(key) end end end end end