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)

Returns true

Public: Simulate clearing the cache
def clear(options=nil)
  true
end

def get(key)

Returns nil.

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

Returns String.

Public: Pretty inspect
def inspect
  "#<#{self.class}>"
end

def set(key, value)

Returns Object 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