class Sprockets::Cache::MemoryStore
def get(key)
key - String cache key.
This API should not be used directly, but via the Cache wrapper API.
Public: Retrieve value from cache.
def get(key) exists = true value = @cache.delete(key) { exists = false } if exists @cache[key] = value else nil end end