Module: AnyCache::Drivers::RedisStore Private

Defined in:
lib/any_cache/drivers/redis_store.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.2.0

Class Method Summary collapse

Class Method Details

.build(settings) ⇒ ::Redis::Store

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:

  • settings (Qonfig::Settings)

Returns:

  • (::Redis::Store)

Since:

  • 0.2.0



21
22
23
# File 'lib/any_cache/drivers/redis_store.rb', line 21

def build(settings)
  ::Redis::Store.new(settings.options)
end

.supported_source?(driver) ⇒ Boolean

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:

  • driver (::Redis::Store)

Returns:

  • (Boolean)

Since:

  • 0.2.0



12
13
14
# File 'lib/any_cache/drivers/redis_store.rb', line 12

def supported_source?(driver)
  defined?(::Redis::Store) && driver.is_a?(::Redis::Store)
end