Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing keys and delete methods? #7

Open
vhlongmore opened this issue Mar 14, 2018 · 0 comments
Open

Missing keys and delete methods? #7

vhlongmore opened this issue Mar 14, 2018 · 0 comments

Comments

@vhlongmore
Copy link

vhlongmore commented Mar 14, 2018

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 keys method to search things saved in previous sessions.

Also, it would be nice to be able to clean up with something like:

badkey = 'delete_me'
del root[badkey]
# alternatively,
root.deleteitem(badkey)

Clearly, I can get around these issues by importing both redis and redisworks, and using the former when I need keys() and delete(), but it would be nice to have it all in one package.

@vhlongmore vhlongmore changed the title Missing methods? Missing keys and delete methods? Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant