Class: Sprockets::Cache::NullStore
- Inherits:
-
Object
- Object
- Sprockets::Cache::NullStore
- Defined in:
- lib/sprockets/cache/null_store.rb
Overview
Instance Method Summary collapse
-
#get(key) ⇒ Object
Public: Simulate a cache miss.
-
#inspect ⇒ Object
Public: Pretty inspect.
-
#set(key, value) ⇒ Object
Public: Simulate setting a value in the cache.
Instance Method Details
#get(key) ⇒ Object
Public: Simulate a cache miss.
This API should not be used directly, but via the Cache wrapper API.
key - String cache key.
Returns nil.
22 23 24 |
# File 'lib/sprockets/cache/null_store.rb', line 22 def get(key) nil end |
#inspect ⇒ Object
Public: Pretty inspect
Returns String.
41 42 43 |
# File 'lib/sprockets/cache/null_store.rb', line 41 def inspect "#<#{self.class}>" end |
#set(key, value) ⇒ Object
Public: Simulate setting a value in the cache.
This API should not be used directly, but via the Cache wrapper API.
key - String cache key. value - Object value.
Returns Object value.
34 35 36 |
# File 'lib/sprockets/cache/null_store.rb', line 34 def set(key, value) value end |