Class: Sprockets::SassProcessor::CacheStore

### Home Classes Methods

### In Files

- lib/sprockets/sass_cache_store.rb

### Parent

Sass::CacheStores::Base

### Methods

- ::new
- #_retrieve
- #_store
- #path_to

### Class/Module Index

Quicksearch

- Sprockets
- Sprockets::ArgumentError
- Sprockets::Asset
- Sprockets::Autoload
- Sprockets::Base
- Sprockets::Bower
- Sprockets::Bundle
- Sprockets::Cache
- Sprockets::Cache::FileStore
- Sprockets::Cache::GetWrapper
- Sprockets::Cache::HashWrapper
- Sprockets::Cache::MemoryStore
- Sprockets::Cache::NullStore
- Sprockets::Cache::ReadWriteWrapper
- Sprockets::Cache::Wrapper
- Sprockets::CachedEnvironment
- Sprockets::ClosureCompressor
- Sprockets::CoffeeScriptProcessor
- Sprockets::CoffeeScriptTemplate
- Sprockets::Compressing
- Sprockets::Configuration
- Sprockets::ContentTypeMismatch
- Sprockets::Context
- Sprockets::ConversionError
- Sprockets::Dependencies
- Sprockets::DigestUtils
- Sprockets::DirectiveProcessor
- Sprockets::ERBProcessor
- Sprockets::ERBTemplate
- Sprockets::EcoProcessor
- Sprockets::EcoTemplate
- Sprockets::EjsProcessor
- Sprockets::EjsTemplate
- Sprockets::EncodingUtils
- Sprockets::Engines
- Sprockets::Environment
- Sprockets::Error
- Sprockets::FileNotFound
- Sprockets::FileOutsidePaths
- Sprockets::FileReader
- Sprockets::HTTPUtils
- Sprockets::Index
- Sprockets::JstProcessor
- Sprockets::LegacyProcProcessor
- Sprockets::LegacyTiltProcessor
- Sprockets::Loader
- Sprockets::Manifest
- Sprockets::ManifestUtils
- Sprockets::Mime
- Sprockets::NotFound
- Sprockets::NotImplementedError
- Sprockets::PathDependencyUtils
- Sprockets::PathDigestUtils
- Sprockets::PathUtils
- Sprockets::Paths
- Sprockets::Processing
- Sprockets::ProcessorUtils
- Sprockets::Resolve
- Sprockets::SassCompressor
- Sprockets::SassProcessor
- Sprockets::SassProcessor::CacheStore
- Sprockets::SassProcessor::Functions
- Sprockets::SassTemplate
- Sprockets::ScssProcessor
- Sprockets::ScssTemplate
- Sprockets::Server
- Sprockets::Transformers
- Sprockets::URITar
- Sprockets::URIUtils
- Sprockets::UglifierCompressor
- Sprockets::UnloadedAsset
- Sprockets::Utils
- Sprockets::YUICompressor
- Rake
- Rake::SprocketsTask

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.