class Sass::CacheStores::ActiveSupport
This is automatically used within Rails.
or for taking advantage of the wide variety of ActiveSupport cache backends.
This is useful for integrating with an app that uses ActiveSupport,
A cache store that wraps an ActiveSupport cache store.
def _retrieve(key, version, sha)
- See: Base#_retrieve -
def _retrieve(key, version, sha) return unless val = @store.fetch('_sass/' + key) return unless val[:version] == version return unless val[:sha] == sha return val[:contents] end
def _store(key, version, sha, contents)
- See: Base#_store -
def _store(key, version, sha, contents) @store.write('_sass/' + key, :version => version, :sha => sha, :contents => contents) end
def initialize(store)
-
store
(::ActiveSupport::Cache::Store
) -- The cache store to wrap.
def initialize(store) @store = store end