class Dgrid::API::Workspace::Cache

Public Class Methods

new() click to toggle source
# File lib/dgrid/api/workspace.rb, line 540
def initialize
  @entries = {}
end

Public Instance Methods

get(type) click to toggle source
# File lib/dgrid/api/workspace.rb, line 552
def get(type)
  @entries[type]
end
include?(type) click to toggle source
# File lib/dgrid/api/workspace.rb, line 544
def include?(type)
  @entries.include?(type)
end
invalidate(type = nil) click to toggle source
# File lib/dgrid/api/workspace.rb, line 556
def invalidate(type = nil)
  if type.nil?
    @entries = {}
  else
    @entries.delete(type)
  end
end
store(type,value) click to toggle source
# File lib/dgrid/api/workspace.rb, line 548
def store(type,value)
  @entries[type] = value
end