Class: AnyCache Private

Inherits:
Object
  • Object
show all
Extended by:
Patches::InterfaceAccessMixin, Plugins::InterfaceAccessMixin
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.

Since:

  • 0.1.0

Defined Under Namespace

Modules: Adapters, Delegation, Drivers, Dumper, Logging, Patches, Plugins

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.

Since:

  • 0.1.0

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.

Since:

  • 0.1.0

Class.new(Error)
NonexistentPatchError =

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.

Since:

  • 0.3.1

Class.new(Error)
AlreadyRegisteredPluginError =

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.

Since:

  • 0.5.0

Class.new(StandardError)
UnregisteredPluginError =

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.

Since:

  • 0.5.0

Class.new(StandardError)
VERSION =

Returns:

  • (String)

Since:

  • 0.1.0

'0.7.0'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Patches::InterfaceAccessMixin

enable_patch!

Methods included from Plugins::InterfaceAccessMixin

plugin, plugins

Methods included from Delegation

included

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.

Parameters:

Since:

  • 0.1.0



117
118
119
# File 'lib/any_cache.rb', line 117

def initialize(adapter)
  @adapter = adapter
end

Instance Attribute Details

#adapterAnyCache::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.

Returns:

Since:

  • 0.1.0



110
111
112
# File 'lib/any_cache.rb', line 110

def adapter
  @adapter
end

Class Method Details

.build(driver = Drivers.build(config)) ⇒ AnyCache

Parameters:

  • driver (Object) (defaults to: Drivers.build(config))

Returns:

Since:

  • 0.1.0



82
83
84
# File 'lib/any_cache.rb', line 82

def build(driver = Drivers.build(config))
  new(Adapters.build(driver))
end