class RIMS::KeyValueStore
Public Class Methods
exist?(path)
click to toggle source
# File lib/rims/kvs.rb, line 50 def self.exist?(path) raise NotImplementedError, 'not implemented.' end
open_with_conf(config)
click to toggle source
# File lib/rims/kvs.rb, line 54 def self.open_with_conf(config) raise NotImplementedError, 'not implemented.' end
Public Instance Methods
[](key)
click to toggle source
# File lib/rims/kvs.rb, line 4 def [](key) raise NotImplementedError, 'abstract' end
[]=(key, value)
click to toggle source
# File lib/rims/kvs.rb, line 8 def []=(key, value) raise NotImplementedError, 'abstract' end
close()
click to toggle source
# File lib/rims/kvs.rb, line 42 def close raise NotImplementedError, 'abstract' end
delete(key)
click to toggle source
# File lib/rims/kvs.rb, line 12 def delete(key) raise NotImplementedError, 'abstract' end
destroy()
click to toggle source
# File lib/rims/kvs.rb, line 46 def destroy raise NotImplementedError, 'abstract' end
each_key()
click to toggle source
# File lib/rims/kvs.rb, line 20 def each_key raise NotImplementedError, 'abstract' end
each_pair() { |key, self| ... }
click to toggle source
# File lib/rims/kvs.rb, line 31 def each_pair return enum_for(:each_pair) unless block_given? each_key do |key| yield(key, self[key]) end end
each_value() { |self| ... }
click to toggle source
# File lib/rims/kvs.rb, line 24 def each_value return enum_for(:each_value) unless block_given? each_key do |key| yield(self[key]) end end
key?(key)
click to toggle source
# File lib/rims/kvs.rb, line 16 def key?(key) raise NotImplementedError, 'abstract' end
sync()
click to toggle source
# File lib/rims/kvs.rb, line 38 def sync raise NotImplementedError, 'abstract' end