Method: Conflow::Redis::HashField#merge

Defined in:
lib/conflow/redis/hash_field.rb

#merge(hash) ⇒ String

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.

Merges hashes, similar to Hash#merge

Examples:

field.merge(smart: true, degree: :none)

Parameters:

  • hash of keys and values to be merged

Returns:

  • Redis response

API:

  • private



16
17
18
# File 'lib/conflow/redis/hash_field.rb', line 16

def merge(hash)
  command :hmset, [key, hash.flatten]
end