hot-redis
hot-redis copied to clipboard
Setting Int to 0 or Float to 0.0 or String to '' won't be executed.
idk if this is by-design but the following code will invalidate primitive types' false values.
@value.setter
def value(self, value):
if value:
self.set(value)
p.s. Maybe this repo is no longer (actively) maintained, but I love the way that data structures in Python gets mapped to Redis in a Pythonic way. I'm trying to build an object mapping between Python and storage backends (e.g. Redis) and came across this project.