Object
Implementation detail. Not intended for direct instantiation.
Implementation detail.
# File lib/volatiledb.rb, line 126 def initialize(path) @path = path @db ||= {} end
# File lib/volatiledb.rb, line 144 def get(key) handle = @db[key] f = path handle if File.file?(f) File.read f else nil end end
# File lib/volatiledb.rb, line 134 def put(key, data) handle = handle_from key File.open(path(handle), "w") {|f| f << data} @db[key] = handle key end
[Validate]
Generated with the Darkfish Rdoc Generator 2.