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/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

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.adapterObject



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

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

.configurationObject



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

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

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

Your code goes here…

Yields:



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

def self.configure
  yield configuration
end