redis-cli GET user:1

Category: Databases & SQL

redis-cli GET user:1

Retrieve the value stored at a key

Returns the value, or nil when the key does not exist. Related: MGET fetches several keys at once, EXISTS checks presence.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.