A meta-cache that chains multiple caches together. Specifically:
@see Base#retrieve
# File lib/sass/cache_stores/chain.rb, line 23 def retrieve(key, sha) @caches.each_with_index do |c, i| next unless obj = c.retrieve(key, sha) @caches[0...i].each {|c| c.store(key, sha, obj)} return obj end nil end
@see Base#store
# File lib/sass/cache_stores/chain.rb, line 18 def store(key, sha, obj) @caches.each {|c| c.store(key, sha, obj)} end
Generated with the Darkfish Rdoc Generator 2.