Sha256: edf7d2753e50d86593283b65ba17c41bdbf3dddf22dd6119863af678f89238af
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 Bytes
Contents
# frozen_string_literal: true module Sprockets module Sass module V2 # Internal: Cache wrapper for Sprockets cache adapter. (Sprockets 2.x) class CacheStore < ::Sass::CacheStores::Base attr_reader :environment def initialize(environment) @environment = environment end def _store(key, version, sha, contents) environment.send :cache_set, "sass/#{key}", version: version, sha: sha, contents: contents end def _retrieve(key, version, sha) obj = environment.send(:cache_get, "sass/#{key}") return unless obj.is_a?(Hash) return if obj[:version] != version || obj[:sha] != sha obj[:obj] 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/v2/cache_store.rb |
sprockets-sass-2.0.0.beta1 | lib/sprockets/sass/v2/cache_store.rb |