class Redis

def hsetnx(key, field, value)

Returns:
  • (Boolean) - whether or not the field was **added** to the hash

Parameters:
  • value (String) --
  • field (String) --
  • key (String) --
def hsetnx(key, field, value)
  synchronize do |client|
    client.call [:hsetnx, key, field, value], &_boolify
  end
end