Method: Redis::Distributed#hsetnx

Defined in:
lib/redis/distributed.rb

#hsetnx(key, field, value) ⇒ Object

Set the value of a hash field, only if the field does not exist.



852
853
854
# File 'lib/redis/distributed.rb', line 852

def hsetnx(key, field, value)
  node_for(key).hsetnx(key, field, value)
end