delete(key)
click to toggle source
def delete(key)
raise NotImplementedError, "Implement this method in child class"
end
fetch(key, defval)
click to toggle source
def fetch(key, defval)
raise NotImplementedError, "Implement this method in child class"
end
get(key)
click to toggle source
def get(key)
raise NotImplementedError, "Implement this method in child class"
end
implementation()
click to toggle source
def implementation
self
end
load()
click to toggle source
persistent_always?()
click to toggle source
def persistent_always?
false
end
put(key, value)
click to toggle source
def put(key, value)
raise NotImplementedError, "Implement this method in child class"
end
save()
click to toggle source
synchronized?()
click to toggle source
def synchronized?
false
end
update(key, &block)
click to toggle source
def update(key, &block)
raise NotImplementedError, "Implement this method in child class"
end