HEX
Server: Apache
System: Linux vps28526 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
User: heewonvps_17 (6705002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib/ruby/vendor_ruby/sprockets/sass_cache_store.rb
require 'sass'

module Sprockets
  class SassProcessor
    # Internal: Cache wrapper for Sprockets cache adapter.
    class CacheStore < ::Sass::CacheStores::Base
      VERSION = '1'

      def initialize(cache, version)
        @cache, @version = cache, "#{VERSION}/#{version}"
      end

      def _store(key, version, sha, contents)
        @cache.set("#{@version}/#{version}/#{key}/#{sha}", contents, true)
      end

      def _retrieve(key, version, sha)
        @cache.get("#{@version}/#{version}/#{key}/#{sha}", true)
      end

      def path_to(key)
        key
      end
    end
  end

  # Deprecated: Use Sprockets::SassProcessor::CacheStore instead.
  class SassCacheStore < SassProcessor::CacheStore
    def initialize(*args)
      Deprecation.new.warn "SassCacheStore is deprecated please use SassProcessor::CacheStore instead"
      super
    end
  end
end