Class: AnyCache Private
- Inherits:
-
Object
- Object
- AnyCache
- Includes:
- Delegation, Qonfig::Configurable
- Defined in:
- lib/any_cache.rb,
lib/any_cache/error.rb,
lib/any_cache/version.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: Adapters, Delegation, Drivers, Logging
Constant Summary collapse
- Error =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Class.new(StandardError)
- UnsupportedDriverError =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Class.new(Error)
- VERSION =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'0.3.0'
Instance Attribute Summary collapse
- #adapter ⇒ AnyCache::Adapters::Basic readonly private
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(adapter) ⇒ void constructor private
Methods included from Delegation
Constructor Details
#initialize(adapter) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
109 110 111 |
# File 'lib/any_cache.rb', line 109 def initialize(adapter) @adapter = adapter end |
Instance Attribute Details
#adapter ⇒ AnyCache::Adapters::Basic (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
102 103 104 |
# File 'lib/any_cache.rb', line 102 def adapter @adapter end |
Class Method Details
.build(driver = Drivers.build(config)) ⇒ AnyCache
75 76 77 |
# File 'lib/any_cache.rb', line 75 def build(driver = Drivers.build(config)) new(Adapters.build(driver)) end |