class Sprockets::Cache::GetWrapper

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/sprockets/cache.rbs

class Sprockets::Cache::GetWrapper < Sprockets::Cache::Wrapper
  def get: (String key) -> (nil | String | Array[Set])
end

def clear(options=nil)

def clear(options=nil)
  # dalli has a #flush method so try it
  if cache.respond_to?(:flush)
    cache.flush(options)
  else
    cache.clear(options)
  end
  true
end

def get(key)

Experimental RBS support (using type sampling data from the type_fusion project).

def get: (String key) -> (nil | String | Set | Set)

This signature was generated using 42 samples from 4 applications.

def get(key)
  cache.get(key)
end

def set(key, value)

def set(key, value)
  cache.set(key, value)
end