module Sprockets::Caching

def cache_get(key)

cache interfaces.
Low level cache getter for `key`. Checks a number of supported
def cache_get(key)
  # `Cache#get(key)` for Memcache
  if cache.respond_to?(:get)
    cache.get(key)
  # `Cache#[key]` so `Hash` can be used
  elsif cache.respond_to?(:[])
    cache[key]
  # `Cache#read(key)` for `ActiveSupport::Cache` support
  elsif cache.respond_to?(:read)
    cache.read(key)
  else
    nil
  end
end