Skip to content

Can I see the values of keys being set? #251

Answered by BharathBK
BharathBK asked this question in Q&A
Discussion options

You must be logged in to vote

I was looking at the wrong place. By default, redis has databases indexed from 0 to 15. In my Django settings.py, I am using database with index 1 for my cache. I can select that database using redis-cli -n -1. So,

➜ redis-cli -n 1
127.0.0.1:6379[1]> keys *

This gave me the list of keys that were being stored by django-ratelimit

This StackOverflow answer helped me to figure this out.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jsocol
Comment options

Answer selected by BharathBK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants