Sha256: e1219a6e7d1a38a72aaee713cfc0f43777313bbc516d48c666527643a07528e0
Contents?: true
Size: 259 Bytes
Versions: 4
Compression:
Stored size: 259 Bytes
Contents
module Econfig class Memory def initialize @mutex = Mutex.new @options = {} end def get(key) @options[key] end def set(key, value) @mutex.synchronize do @options[key] = value end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
econfig-1.0.2 | lib/econfig/memory.rb |
econfig-1.0.1 | lib/econfig/memory.rb |
econfig-1.0.0 | lib/econfig/memory.rb |
econfig-0.1.1 | lib/econfig/memory.rb |