Forked from BetterProgramming/redisx_hello_world.py
Created
September 30, 2022 18:53
-
-
Save onelharrison/33edb0f81d3d9628c2f3d5bb35c2a37a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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