hset method

Future<bool> hset(
  1. String key,
  2. String field,
  3. Object value
)

Sets field in the hash stored at key to value. If key does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.

True, if field is a new field in the hash and value was set. False, if field already exists in the hash and the value was updated.

Implementation

Future<bool> hset(String key, String field, Object value) async {
  return (await tier1.hset(key, field, value)).toInteger().payload == 1;
}