redis.set("key", "value")

assert redis.get("key") == "value"

Arguments

key
str
required

The key to get.

Response

The response is the value stored at the key or None if the key doesn’t exist.

redis.set("key", "value")

assert redis.get("key") == "value"