Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created May 3, 2021 14:45
Show Gist options
  • Save BetterProgramming/4793f89917ab03a23f9a86af193cdcea to your computer and use it in GitHub Desktop.
Save BetterProgramming/4793f89917ab03a23f9a86af193cdcea to your computer and use it in GitHub Desktop.
import redisx
r = redisx.Redis(db=1)
r.set('hello', 'world') # True
value = r.get('hello')
print(value) # 'world'
r.delete('hello') # True
print(r.get('hello')) # None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment