get

英[get] 美[ɡɛt]

vt. Get; catch; persuade; receive (punishment, etc.)

vt.& vi. Arrive, come

vi. Become; start; try to deal with; obtain benefits or wealth

n. Reproduce, cub; profit

Third person singular : gets present participle: getting past tense: got past participle: got gotten

redis HGET command syntax

Function: Return the value of the given field field in the hash table key.

Syntax: HGET key field

Available versions:>= 2.0.0

Time complexity : O(1)

Returns: The value of the given field. When the given field does not exist or the given key does not exist, nil is returned.

redis HGET command example

# 域存在
redis> HSET site redis redis.com
(integer) 1
redis> HGET site redis
"redis.com"
# 域不存在
redis> HGET site mysql
(nil)