class Moneta::Adapters::Null
Null backend which doesn't store anything @api public
Public Class Methods
new(options = {})
click to toggle source
@param [Hash] options Options hash
# File lib/moneta/adapters/null.rb, line 9 def initialize(options = {}) end
Public Instance Methods
clear(options = {})
click to toggle source
(see Moneta::Proxy#clear)
# File lib/moneta/adapters/null.rb, line 33 def clear(options = {}) self end
delete(key, options = {})
click to toggle source
(see Moneta::Proxy#delete)
# File lib/moneta/adapters/null.rb, line 28 def delete(key, options = {}) nil end
key?(key, options = {})
click to toggle source
(see Moneta::Proxy#key?)
# File lib/moneta/adapters/null.rb, line 13 def key?(key, options = {}) false end
load(key, options = {})
click to toggle source
(see Moneta::Proxy#load)
# File lib/moneta/adapters/null.rb, line 18 def load(key, options = {}) nil end
store(key, value, options = {})
click to toggle source
(see Moneta::Proxy#store)
# File lib/moneta/adapters/null.rb, line 23 def store(key, value, options = {}) value end