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 _retrieve(key, version, sha)

Other tags:
    See: Base#_retrieve -
def _retrieve(key, version, sha)
  if @contents.has_key?(key)
    return unless @contents[key][:version] == version
    return unless @contents[key][:sha] == sha
    return @contents[key][:contents]
  end
end

def _store(key, version, sha, contents)

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

def initialize

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

def reset!

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