Sha256: 6972b684b352f2844f9fbcf181429a424d4690aa5b30b284b1daff528ed7d530

Contents?: true

Size: 250 Bytes

Versions: 6

Compression:

Stored size: 250 Bytes

Contents

module Garterbelt
  def self.cache_hash
    @cache_hash ||= {:default => Moneta::Memory.new}
  end
  
  def self.cache(store = :default)
    c = cache_hash[store]
    raise "Cache #{store.inspect} has not yet been configured" unless c
    c
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
garterbelt-0.0.7 lib/stocking.rb
garterbelt-0.0.6 lib/stocking.rb
garterbelt-0.0.5 lib/stocking.rb
garterbelt-0.0.4 lib/stocking.rb
garterbelt-0.0.3 lib/stocking.rb
garterbelt-0.0.2 lib/stocking.rb