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/boolean.rb,
lib/kredis/type/datetime.rb
Defined Under Namespace
Modules: Attributes, Connections, DefaultValues, Namespace, Type, TypeCasting, Types Classes: LogSubscriber, Migration, Railtie
Constant Summary collapse
- VERSION =
"1.7.0"
Constants included from Connections
Connections::DEFAULT_REDIS_TIMEOUT, Connections::DEFAULT_REDIS_URL
Constants included from TypeCasting
Instance Method Summary collapse
Methods included from Connections
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, #limiter, #list, #ordered_set, #proxy, #scalar, #set, #slot, #slots, #string, #unique_list
Instance Method Details
#instrument(channel, **options, &block) ⇒ Object
31 32 33 |
# File 'lib/kredis.rb', line 31 def instrument(channel, **, &block) ActiveSupport::Notifications.instrument("#{channel}.kredis", **, &block) end |
#redis(config: :shared) ⇒ Object
27 28 29 |
# File 'lib/kredis.rb', line 27 def redis(config: :shared) configured_for(config) end |