class Sprockets::Cache::MemoryStore
def set(key, value)
Experimental RBS support (using type sampling data from the type_fusion
project).
def set: (String key, (String | Hash) value) -> untyped
This signature was generated using 31 samples from 1 application.
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) @mutex.synchronize do @cache.delete(key) @cache[key] = value @cache.shift if @cache.size > @max_size end value end