hset

abstract suspend fun hset(key: String, field: String, value: String): Boolean

Set a field value. Returns true if a new field was added, false if updated.


abstract suspend fun hset(key: String, entries: Map<String, String>): Long

Set multiple fields. Returns the number of newly-added fields.