Skip to main content
Documentation
API Reference
Search
⌘K
Ask AI
⌘I
Discord
Blog
Twitter
Console
Redis
/
/
SDKs
/
Python
/
Commands
/
String
GET
Return the value of the specified key or
None
if the key doesn't exist.
1 min read
Copy as Markdown
Arguments
#
key
str
required
#
The key to get.
Response
#
DECRBY
GETDEL
Example
redis.set(
"key"
,
"value"
)
assert
redis.get(
"key"
)
==
"value"