class Sprockets::SassProcessor::CacheStore

Internal: Cache wrapper for Sprockets cache adapter.

Constants

VERSION

Public Class Methods

new(cache, version) click to toggle source
# File lib/sprockets/sass_cache_store.rb, line 9
def initialize(cache, version)
  @cache, @version = cache, "#{VERSION}/#{version}"
end

Public Instance Methods

_retrieve(key, version, sha) click to toggle source
# File lib/sprockets/sass_cache_store.rb, line 17
def _retrieve(key, version, sha)
  @cache.get("#{@version}/#{version}/#{key}/#{sha}", true)
end
_store(key, version, sha, contents) click to toggle source
# File lib/sprockets/sass_cache_store.rb, line 13
def _store(key, version, sha, contents)
  @cache.set("#{@version}/#{version}/#{key}/#{sha}", contents, true)
end
path_to(key) click to toggle source
# File lib/sprockets/sass_cache_store.rb, line 21
def path_to(key)
  key
end