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

No key deletion support. #45

Open
sshagy opened this issue Sep 16, 2020 · 4 comments
Open

No key deletion support. #45

sshagy opened this issue Sep 16, 2020 · 4 comments

Comments

@sshagy
Copy link

sshagy commented Sep 16, 2020

Hi, everyone!

I would like to be able to delete both a specific key and clear the entire database. True, the latter requires special permissions to execute commands: FLUSHDB/FLUSHALL. But key deletion is available by default: DEL key

Does this package fit this functionality?

@ionelmc
Copy link
Owner

ionelmc commented Sep 18, 2020

You could enumerate the keys yourself if you have restrictions placed in. The library assumes the more efficient flush commands are available.

@sshagy
Copy link
Author

sshagy commented Sep 22, 2020

That's right, I have no problem deleting keys from the console. I mean, it would be great if it was possible to delete keys through the django admin panel (add a delete button for each key, or make checkboxes and one delete button). Does it make sense to add this to this package in "Inspect RedisServer" section?

изображение

From time to time there remains garbage with TTL -1, which has to be cleaned by hand through the console. Perhaps there are people who will understand me. I'm interested in the opinion of the author of this package :)

@ionelmc
Copy link
Owner

ionelmc commented Sep 22, 2020

Ooooof. Looks like I confused the bug report https://github.com/ionelmc/python-redis-lock.

Anyway, yes, there could be a delete button. Are you interested in making a PR?

@sshagy
Copy link
Author

sshagy commented Sep 22, 2020

Lol, anything can happen)

Yes, I'm interested. Although I had little practice in customizing django-admin panels, I will try to do it in my free time )

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

2 participants