# File lib/sass/cache_stores/base.rb, line 50 def store(key, sha, obj) temp = obj.before_sass_cache_store if obj.respond_to?(:before_sass_cache_store) begin _store(key, Sass::VERSION, sha, Marshal.dump(obj)) ensure obj.after_sass_cache_store(temp) if obj.respond_to?(:after_sass_cache_store) end rescue TypeError, LoadError => e Sass::Util.sass_warn "Warning. Error encountered while saving a #{obj.class.name} to cache #{path_to(key)}: #{e}" end