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 Proxy#clear
)
# File lib/moneta/adapters/null.rb, line 32 def clear(options = {}) self end
delete(key, options = {})
click to toggle source
(see Proxy#delete
)
# File lib/moneta/adapters/null.rb, line 27 def delete(key, options = {}) nil end
key?(key, options = {})
click to toggle source
(see Proxy#key?
)
# File lib/moneta/adapters/null.rb, line 12 def key?(key, options = {}) false end
load(key, options = {})
click to toggle source
(see Proxy#load
)
# File lib/moneta/adapters/null.rb, line 17 def load(key, options = {}) nil end
store(key, value, options = {})
click to toggle source
(see Proxy#store
)
# File lib/moneta/adapters/null.rb, line 22 def store(key, value, options = {}) value end