Skip to content

GET

Syntax

GET key

GET returns the value for the key in args.

The command returns (nil) if the key does not exist.

Examples

localhost:7379> SET k1 v1
OK OK
localhost:7379> GET k1
OK v1
localhost:7379> GET k2
(nil)