The Redis HINCRBYFLOAT
command increments the field in the hash at the specified key by a floating point number. We specify how much we want the field to increment by when we call the command.
Tag: commands
Redis HINCRBY Command
The Redis HINCRBY
command increments the number that’s stored at the specified field in the hash at the specified key. We specify how much we want the field to increment by when we call the command.
Redis HVALS Command
The Redis HVALS
command returns all values in the hash stored at the specified key.
Redis HLEN Command
The Redis HLEN
command returns the number of fields in the hash stored at the specified key.
Redis HGETALL Command
The Redis HGETALL
command returns all fields and values from the hash at the specified key.
Redis HMGET Command
The Redis HMGET
command allows us to get multiple values from a hash. It returns the value/s associated with the specified field/s in the hash at the specified key.
Redis HGET Command
The Redis HGET
command allows us to get a value from a hash. It returns the value associated with the specified field in the hash at the specified key.
Redis HRANDFIELD Command
The Redis HRANDFIELD
command allows us to get a random field from a given key.
The command accepts several arguments that allows us to specify the number of random fields returned, whether to include the same field multiple times, and whether or not to include the values with each field returned.
The HRANDFIELD
command was introduced in Redis 6.2.0.
Redis HEXISTS Command
In Redis, the HEXISTS
command allows us to check whether a field exists in a given hash. We pass the name of the key and the field to the command, and it returns 1
if the field exists, and 0
if it doesn’t.
Redis HKEYS Command
The Redis HKEYS
command returns all fields in the hash stored at the specified key.