Class Sass::CacheStores::Chain
In: lib/sass/cache_stores/chain.rb
Parent: Base

A meta-cache that chains multiple caches together. Specifically:

  • All `store`s are passed to all caches.
  • `retrieve`s are passed to each cache until one has a hit.
  • When one cache has a hit, the value is `store`d in all earlier caches.

Methods

new   retrieve   store  

Public Class methods

Create a new cache chaining the given caches.

@param caches [Array<Sass::CacheStores::Base>] The caches to chain.

Public Instance methods

[Validate]