class Sprockets::Cache::MemoryStore

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: Set a key and value in the cache.
def set(key, value)
  @cache.delete(key)
  @cache[key] = value
  @cache.shift if @cache.size > @max_size
  value
end