Sha256: a6f5f4dbf0d2bd6ff3aa8a470106447c189c28d84eb2a3da7e4c9eea1155e3e6
Contents?: true
Size: 485 Bytes
Versions: 12
Compression:
Stored size: 485 Bytes
Contents
module Verdict module Storage class MemoryStorage < BaseStorage attr_reader :storage def initialize @storage = {} end def get(scope, key) @storage[scope] ||= {} @storage[scope][key] end def set(scope, key, value) @storage[scope] ||= {} @storage[scope][key] = value end def remove(scope, key) @storage[scope] ||= {} @storage[scope].delete(key) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems