Module: Kredis

Extended by:
Kredis
Includes:
Connections, Namespace, TypeCasting, Types
Included in:
Kredis
Defined in:
lib/kredis.rb,
lib/kredis/version.rb,
lib/kredis/type/json.rb,
lib/kredis/type/datetime.rb

Defined Under Namespace

Modules: Attributes, Connections, Namespace, Type, TypeCasting, Types Classes: LogSubscriber, Migration, Railtie

Constant Summary collapse

VERSION =
"0.4.0"

Constants included from TypeCasting

TypeCasting::TYPES

Instance Method Summary collapse

Methods included from Connections

#clear_all, #configured_for

Methods included from Namespace

#namespace, #namespace=, #namespaced_key

Methods included from TypeCasting

#string_to_type, #strings_to_types, #type_to_string, #types_to_strings

Methods included from Types

#boolean, #counter, #cycle, #datetime, #decimal, #enum, #flag, #float, #hash, #integer, #json, #list, #proxy, #scalar, #set, #slot, #slots, #string, #unique_list

Instance Method Details

#instrument(channel, **options, &block) ⇒ Object



27
28
29
# File 'lib/kredis.rb', line 27

def instrument(channel, **options, &block)
  ActiveSupport::Notifications.instrument("#{channel}.kredis", **options, &block)
end

#redis(config: :shared) ⇒ Object



23
24
25
# File 'lib/kredis.rb', line 23

def redis(config: :shared)
  configured_for(config)
end