# File lib/sprockets/caching.rb, line 27
    def cache_set(key, value)
      # `Cache#set(key, value)` for Memcache
      if cache.respond_to?(:set)
        cache.set(key, value)

      # `Cache#[key]=value` so `Hash` can be used
      elsif cache.respond_to?(:[]=)
        cache[key] = value

      # `Cache#write(key, value)` for `ActiveSupport::Cache` support
      elsif cache.respond_to?(:write)
        cache.write(key, value)
      end

      value
    end