HSETNX
Set a hash field only if it does not exist.
HSETNX key field value
Complexity
O(1)
Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.
Redis compatibility
Compatible
Behaves as Redis does.
See also
HDELHEXISTSHEXPIREHGETHGETALLHINCRBYHKEYSHLENHMGETHMSETHPERSISTHPEXPIREHPEXPIREATHPTTLHSCANHSETHTTLHVALS