Class: Startback::Caching::NoStore
- Inherits:
-
Object
- Object
- Startback::Caching::NoStore
- Defined in:
- lib/startback/caching/no_store.rb
Overview
Caching store implementation that caches nothing at all.
Instance Method Summary collapse
- #delete(key) ⇒ Object
- #exist?(key) ⇒ Boolean
- #get(key) ⇒ Object
-
#initialize ⇒ NoStore
constructor
A new instance of NoStore.
- #set(key, value, ttl) ⇒ Object
Constructor Details
#initialize ⇒ NoStore
Returns a new instance of NoStore.
8 9 |
# File 'lib/startback/caching/no_store.rb', line 8 def initialize end |
Instance Method Details
#delete(key) ⇒ Object
23 24 |
# File 'lib/startback/caching/no_store.rb', line 23 def delete(key) end |
#exist?(key) ⇒ Boolean
11 12 13 |
# File 'lib/startback/caching/no_store.rb', line 11 def exist?(key) false end |
#get(key) ⇒ Object
15 16 17 |
# File 'lib/startback/caching/no_store.rb', line 15 def get(key) nil end |
#set(key, value, ttl) ⇒ Object
19 20 21 |
# File 'lib/startback/caching/no_store.rb', line 19 def set(key, value, ttl) value end |