Class: Sprockets::Cache::NullStore
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/sprockets/cache/null_store.rb |
Overview
Instance Method Summary
-
#clear(options = nil)
Public: Simulate clearing the cache.
-
#get(key)
Public: Simulate a cache miss.
-
#inspect
Public: Pretty inspect.
-
#set(key, value)
Public: Simulate setting a value in the cache.
Instance Method Details
#clear(options = nil)
Public: Simulate clearing the cache
Returns true
# File 'lib/sprockets/cache/null_store.rb', line 49
def clear(=nil) true end
#get(key)
Public: Simulate a cache miss.
This API should not be used directly, but via the Cache
wrapper API.
key - String cache key.
Returns nil.
# File 'lib/sprockets/cache/null_store.rb', line 23
def get(key) nil end
#inspect
Public: Pretty inspect
Returns String.
# File 'lib/sprockets/cache/null_store.rb', line 42
def inspect "#<#{self.class}>" end
#set(key, value)
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.
# File 'lib/sprockets/cache/null_store.rb', line 35
def set(key, value) value end