hot-redis icon indicating copy to clipboard operation
hot-redis copied to clipboard

Setting Int to 0 or Float to 0.0 or String to '' won't be executed.

Open barius opened this issue 3 years ago • 0 comments

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.

barius avatar Apr 14 '22 02:04 barius