Sha256: b581888fe2a2c45daa01a92f60bfae9a0dac396e14851e14a482b0d31c835634
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
module NotRelational class MemoryStorage def initialize clear end def get(bucket,key) return @stuff[bucket+"sdsdw555"+key] end def delete(bucket,key) @attributes.delete(bucket+"sdsdw555"+key) return @stuff.delete(bucket+"sdsdw555"+key) end def put(bucket,key,object,attributes=nil) @stuff[bucket+"sdsdw555"+key]=object @attributes[bucket+"sdsdw555"+key]=attributes if attributes end def get_content_type(bucket,key) return @attributes[bucket+"sdsdw555"+key]['Content-Type'] if @attributes.has_key?(bucket+"sdsdw555"+key) return nil end def clear() @stuff={} @attributes={} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudwow-not_relational-0.1.0 | lib/not_relational/memory_storage.rb |