Hash
HSETNX
Write a field to a hash but only if the field does not exist.
Arguments
The key of the hash.
The name of the field.
The value to set.
Response
True
if the field was set, False
if it already existed.
Was this page helpful?
Write a field to a hash but only if the field does not exist.
The key of the hash.
The name of the field.
The value to set.
True
if the field was set, False
if it already existed.
Was this page helpful?