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
- .adapter ⇒ Object
- .configuration ⇒ Object
-
.configure {|configuration| ... } ⇒ Object
Your code goes here…
Class Method Details
.adapter ⇒ Object
19 20 21 |
# File 'lib/cache/object.rb', line 19 def self.adapter @adapter ||= configuration.adapter end |
.configuration ⇒ Object
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…
11 12 13 |
# File 'lib/cache/object.rb', line 11 def self.configure yield configuration end |