Missing keys and delete methods?
vhlongmore opened this issue · 0 comments
vhlongmore commented
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.