YouTip LogoYouTip

Hashes Hget

# Redis HGET Command [!(#) Redis Hashes](#) The Redis HGET command is used to return the value of a specified field in a hash table. ### Syntax The basic syntax for the Redis HGET command is as follows: redis 127.0.0.1:6379> HGET KEY_NAME FIELD_NAME ### Available Since >= 2.0.0 ### Return Value Returns the value of the given field. If the given field or key does not exist, it returns nil. ### Example ## Example > HSET site redis redis.com 1 > HGET site redis "redis.com" > HGET site mysql (nil) [!(#) Redis Hashes](#)
← Event OnpauseEvent Onloadedmetadata β†’