Sha256: ed289ec214e3c7dade60be05efddda24fec710d1e90f742fdf7452d18cfad996
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 Bytes
Contents
# frozen_string_literal: true module Sprockets module Sass module V3 # Internal: Cache wrapper for Sprockets cache adapter. (Sprockets >= 3) class CacheStore < ::Sass::CacheStores::Base VERSION = '1' def initialize(cache, version) @cache = cache @version = "#{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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sprockets-sass-2.0.0.beta2 | lib/sprockets/sass/v3/cache_store.rb |
sprockets-sass-2.0.0.beta1 | lib/sprockets/sass/v3/cache_store.rb |