Redis.hsetnx

Set the specified hash field to the specified value if the field not exists. <b>Time complexity:</b> O(1) @param key @param field @param value @return If the field already exists, 0 is returned, otherwise if a new field is created 1 is returned.

  1. Long hsetnx(string key, string field, string value)
    class Redis
    Long
    hsetnx
    (
    string key
    ,
    string field
    ,
    string value
    )
  2. alias hsetnx = BinaryRedis.hsetnx

Meta