class Sass::CacheStores::Memory

A backend for the Sass cache using in-process memory.

def self._load(repr)

Other tags:
    Private: -
def self._load(repr)
  Memory.new
end

def _dump(depth)

Other tags:
    Private: -
def _dump(depth)
  ""
end

def initialize

Create a new, empty cache store.
def initialize
  @contents = {}
end

def reset!

Destructively clear the cache.
def reset!
  @contents = {}
end

def retrieve(key, sha)

Other tags:
    See: Base#retrieve -
def retrieve(key, sha)
  if @contents.has_key?(key)
    return unless @contents[key][:sha] == sha
    obj = @contents[key][:obj]
    obj.respond_to?(:deep_copy) ? obj.deep_copy : obj.dup
  end
end

def store(key, sha, obj)

Other tags:
    See: Base#store -
def store(key, sha, obj)
  @contents[key] = {:sha => sha, :obj => obj}
end