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