Sha256: 28930147f82dc296ef253b2a26318b1caf07e2dea4605db4d3ca1e3089d9e639
Contents?: true
Size: 328 Bytes
Versions: 1
Compression:
Stored size: 328 Bytes
Contents
class SparaMem def initialize @store = {} end def set(key, value) @store[key] = value end def get(key) @store[key] end def del(key) @store.delete(key) end def keys @store.keys end def vals @store.values end def all @store end def clean! @store = {} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spara-0.0.2 | lib/spara/spara_mem.rb |