-
I am trying to set up a rate-limit to limit the number of times a I have this in my settings:
I have this in
The rate limit is working as expected. But I cannot see any keys getting stored in the redis server
I am worried if this will work in production and that I cannot see the keys in the redis server. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I was looking at the wrong place. By default, redis has databases indexed from 0 to 15. In my Django
This gave me the list of keys that were being stored by This StackOverflow answer helped me to figure this out. |
Beta Was this translation helpful? Give feedback.
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 usingredis-cli -n -1
. So,This gave me the list of keys that were being stored by
django-ratelimit
This StackOverflow answer helped me to figure this out.