Class: Renderful::Cache::Null
Instance Method Summary collapse
- #delete(*keys) ⇒ Object
- #delete_matched(pattern) ⇒ Object
- #exist?(_key) ⇒ Boolean
- #fetch(_key) ⇒ Object
- #read(_key) ⇒ Object
- #write(key, value) ⇒ Object
Instance Method Details
#delete(*keys) ⇒ Object
18 19 20 |
# File 'lib/renderful/cache/null.rb', line 18 def delete(*keys) # noop end |
#delete_matched(pattern) ⇒ Object
22 23 24 |
# File 'lib/renderful/cache/null.rb', line 22 def delete_matched(pattern) # noop end |
#exist?(_key) ⇒ Boolean
6 7 8 |
# File 'lib/renderful/cache/null.rb', line 6 def exist?(_key) false end |
#fetch(_key) ⇒ Object
26 27 28 |
# File 'lib/renderful/cache/null.rb', line 26 def fetch(_key) yield end |
#read(_key) ⇒ Object
10 11 12 |
# File 'lib/renderful/cache/null.rb', line 10 def read(_key) nil end |
#write(key, value) ⇒ Object
14 15 16 |
# File 'lib/renderful/cache/null.rb', line 14 def write(key, value) # noop end |