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