Class: Zm::Support::Cache::NullStore
- Inherits:
-
Store
- Object
- Store
- Zm::Support::Cache::NullStore
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
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
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
|
#inspect ⇒ Object
37
38
39
|
# File 'lib/zm/support/cache/null_store.rb', line 37
def inspect
"#<#{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
|