redisworks
redisworks copied to clipboard
Pythonic Redis Client
Thier is an error when i am trying to get/ set a value with an interger in Brackets ### Example: ```py # set root[123] = 'foo' # raise TypeError #...
Added feature for #13
Attempting to import redisworks on Python 3.10 gives the following error: ```py Traceback (most recent call last): File "/Users/tiltowait/r.py", line 3, in from redisworks import Root File "/opt/homebrew/lib/python3.10/site-packages/redisworks/__init__.py", line 2,...
According to https://stackoverflow.com/a/39219783/1497443 the `hmset` command does not work with empty dictionaries.
Took me a while to understand how to set the root key to a dynamic string. Might be worth to note it on the instructions: ``` >>> class Post(Root): ......
Is it possible to specify a ttl when saving to redis?
When I use redisworks to set the True/False value, it can successfully set. But when read it, the evaluation result will be always True.
Initiating Root with password argument seems to fail. I think this is because the password is not passed on to pyredis on line 61 of redisworks.py. It can easily be...
Async?
Does this module support asynchronous calls? I have to use .flush() when retrieving data to ensure I'm getting the updated cache, however when I use flask & receive simultaneous connections,...
I suppose I could get an approximate equivalent of redis `keys(pattern='')` by doing: ``` root = Root() keys = root.__dict__['evaluated_items'].keys() ``` but it would be nice to have a proper...