BinaryRedis.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(const(ubyte)[] key, const(ubyte)[] field, const(ubyte)[] value)
    class BinaryRedis
    Long
    hset
    (
    const(ubyte)[] key
    ,
    const(ubyte)[] field
    ,
    const(ubyte)[] value
    )
  2. Long hset(const(ubyte)[] key, Map!(const(ubyte)[], const(ubyte)[]) hash)

Meta