Sha256: b26dcaf71a6cc2d6e8f04908ca6802f9e7b0e832197dd29320be781655cde7b8
Contents?: true
Size: 660 Bytes
Versions: 25
Compression:
Stored size: 660 Bytes
Contents
module ActiveSupport module Cache class MemoryStore < Store def initialize @data = {} end def read(name, options = nil) super @data[name] end def write(name, value, options = nil) super @data[name] = value end def delete(name, options = nil) super @data.delete(name) end def delete_matched(matcher, options = nil) super @data.delete_if { |k,v| k =~ matcher } end def exist?(name,options = nil) super @data.has_key?(name) end def clear @data.clear end end end end
Version data entries
25 entries across 25 versions & 7 rubygems