Returns a new instance of Cache.
Parameters:
Options hash
Options Hash (options):
Moneta store used as cache
Moneta store used as adapter
Yield Parameters:
block
44 45 46 47
# File 'lib/moneta/cache.rb', line 44 def initialize(options = {}, &block) @cache, @adapter = options[:cache], options[:adapter] DSL.new(self, &block) if block_given? end