I am using redis-py (https://redis-py.readthedocs.org/en/latest/).
lets say I have some redis keys saved and av. 'av' has no assigned value so using the command line, I can do:
>>> redis.get('saved')
Out[4]: 'None'
>>> redis.get('av')
>>> redis.get('saved')
Out[6]: 'None'
How would you test for 'no assigned value' for a key in this context?
if redis.get('av'):` not working?None, which would be in line with howget()works fordicts (thisget()is probably inherited fromdict). Run this and see what it says:redis.get('av') is None