Skip to content

Instantly share code, notes, and snippets.

@onelharrison
Forked from BetterProgramming/redisx_hello_world.py
Created September 30, 2022 18:53
Show Gist options
  • Save onelharrison/33edb0f81d3d9628c2f3d5bb35c2a37a to your computer and use it in GitHub Desktop.
Save onelharrison/33edb0f81d3d9628c2f3d5bb35c2a37a 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