Redis.hset

Set the specified hash field to the specified value. <p> If key does not exist, a new key holding a hash is created. <p> <b>Time complexity:</b> O(1) @param key @param field @param value @return If the field already exists, and the HSET just produced an update of the value, 0 is returned, otherwise if a new field is created 1 is returned.

  1. Long hset(string key, string field, string value)
    class Redis
    Long
    hset
    (
    string key
    ,
    string field
    ,
    string value
    )
  2. alias hset = BinaryRedis.hset
  3. Long hset(string key, Map!(string, string) hash)

Meta