Module: Cache::Object

Defined in:
lib/cache/object.rb,
lib/cache/object/config.rb,
lib/cache/object/adapter.rb,
lib/cache/object/version.rb,
lib/cache/object/multi_get.rb,
lib/cache/object/active_record.rb,
lib/cache/object/key_generator.rb,
lib/cache/object/dtrace_provider.rb,
lib/cache/object/instance_decorator.rb

Defined Under Namespace

Modules: ActiveRecord Classes: Adapter, Config, DTraceProvider, InstanceDecorator, KeyGenerator, MultiGet

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.adapterObject



20
21
22
# File 'lib/cache/object.rb', line 20

def self.adapter
  @adapter ||= configuration.adapter
end

.configurationObject



16
17
18
# File 'lib/cache/object.rb', line 16

def self.configuration
  @configuration ||= Cache::Object::Config.new
end

.configure {|configuration| ... } ⇒ Object

Your code goes here…

Yields:



12
13
14
# File 'lib/cache/object.rb', line 12

def self.configure
  yield configuration
end