class Sprockets::Cache
def set(key, value, local = false)
local - Set on local cache (default: false)
a different value for the given key has undefined behavior.
value - A consistent JSON serializable object for the given key. Setting
key - JSON serializable key
Cache#fetch API over using this.
depending on the backend store being used. Prefer the
This API may be used publicly, but may have undefined behavior
Public: Low level API to set item directly to the backend cache store.
def set(key, value, local = false) expanded_key = expand_key(key) @fetch_cache.set(expanded_key, value) if local @cache_wrapper.set(expanded_key, value) end