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/instance_decorator.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.adapterObject



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

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

.configurationObject



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

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

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

Your code goes here…

Yields:



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

def self.configure
  yield configuration
end