Class: Zm::Support::Cache::NullStore

Inherits:
Store
  • Object
show all
Defined in:
lib/zm/support/cache/null_store.rb

Instance Attribute Summary

Attributes inherited from Store

#logger, #options

Instance Method Summary collapse

Methods inherited from Store

#initialize

Constructor Details

This class inherits a constructor from Zm::Support::Cache::Store

Instance Method Details

#cleanup(_options = nil) ⇒ Object



33
34
35
# File 'lib/zm/support/cache/null_store.rb', line 33

def cleanup(_options = nil)
  nil
end

#clear(_options = nil) ⇒ Object



29
30
31
# File 'lib/zm/support/cache/null_store.rb', line 29

def clear(_options = nil)
  nil
end

#delete(_name, _options = nil) ⇒ Object



21
22
23
# File 'lib/zm/support/cache/null_store.rb', line 21

def delete(_name, _options = nil)
  nil
end

#exist?(_name, _options = nil) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/zm/support/cache/null_store.rb', line 25

def exist?(_name, _options = nil)
  false
end

#fetch(_name, _options = nil, &block) ⇒ Object



9
10
11
# File 'lib/zm/support/cache/null_store.rb', line 9

def fetch(_name, _options = nil, &block)
  block.call
end

#inspectObject

:nodoc:



37
38
39
# File 'lib/zm/support/cache/null_store.rb', line 37

def inspect # :nodoc:
  "#<#{self.class.name} options=#{@options.inspect}>"
end

#read(_name, _options = nil) ⇒ Object



13
14
15
# File 'lib/zm/support/cache/null_store.rb', line 13

def read(_name, _options = nil)
  nil
end

#write(_name, _value, _options = nil) ⇒ Object



17
18
19
# File 'lib/zm/support/cache/null_store.rb', line 17

def write(_name, _value, _options = nil)
  nil
end