class Sprockets::Cache::NullStore
ActiveSupport::Cache::NullStore
See Also
environment.cache = Sprockets::Cache::NullStore.new
Assign the instance to the Environment#cache.
default when no Environment#cache is configured.
Public: A compatible cache store that doesn’t store anything. Used by
def clear(options=nil)
Public: Simulate clearing the cache
def clear(options=nil) true end
def get(key)
key - String cache key.
This API should not be used directly, but via the Cache wrapper API.
Public: Simulate a cache miss.
def get(key) nil end
def inspect
Public: Pretty inspect
def inspect "#<#{self.class}>" end
def set(key, value)
value - Object value.
key - String cache key.
This API should not be used directly, but via the Cache wrapper API.
Public: Simulate setting a value in the cache.
def set(key, value) value end