Class: Faulty::Cache::Null
- Inherits:
-
Object
- Object
- Faulty::Cache::Null
- Defined in:
- lib/faulty/cache/null.rb
Overview
A cache backend that does nothing
All methods are stubs and do no caching
Instance Method Summary collapse
Instance Method Details
#fault_tolerant? ⇒ true
18 19 20 |
# File 'lib/faulty/cache/null.rb', line 18 def fault_tolerant? true end |
#read(_key) ⇒ nil
10 11 |
# File 'lib/faulty/cache/null.rb', line 10 def read(_key) end |
#write(_key, _value, expires_in: nil) ⇒ void
This method returns an undefined value.
14 15 |
# File 'lib/faulty/cache/null.rb', line 14 def write(_key, _value, expires_in: nil) end |