Parent

Included Modules

Files

Class/Module Index [+]

Quicksearch

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 33
def clear(options = {})
  self
end
delete(key, options = {}) click to toggle source

(see Proxy#delete)

# File lib/moneta/adapters/null.rb, line 28
def delete(key, options = {})
  nil
end
key?(key, options = {}) click to toggle source

(see Proxy#key?)

# File lib/moneta/adapters/null.rb, line 13
def key?(key, options = {})
  false
end
load(key, options = {}) click to toggle source

(see 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 Proxy#store)

# File lib/moneta/adapters/null.rb, line 23
def store(key, value, options = {})
  value
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.