class Sass::CacheStores::Base
def retrieve(key, sha)
-
(Object)
- The cached object.
Parameters:
-
sha
(String
) -- The checksum of the root element's content. -
key
(String
) -- The key the root element was stored under.
def retrieve(key, sha) contents = _retrieve(key, Sass::VERSION, sha) Marshal.load(contents) if contents rescue EOFError, TypeError, ArgumentError, LoadError => e Sass::Util.sass_warn "Warning. Error encountered while reading cache #{path_to(key)}: #{e}" nil end