Class: Valise::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/valise/cache.rb

Defined Under Namespace

Classes: Store

Instance Method Summary collapse

Constructor Details

#initializeCache

Returns a new instance of Cache.



41
42
43
# File 'lib/valise/cache.rb', line 41

def initialize
  @stores = Hash.new{|h,k| h[k] = Store.new}
end

Instance Method Details

#domain(key) ⇒ Object



45
46
47
# File 'lib/valise/cache.rb', line 45

def domain(key)
  @stores[key]
end