问题
We had a bug in our production system. The timeout was set incorrectly.
Now I want to write a test which checks, that the value of the timeout is correct.
I look at the docs and don't see a way to read the timeout value of a particular cache-key:
https://docs.djangoproject.com/en/2.2/topics/cache/
How could I read the timeout value in my test to unsure it is correct?
来源:https://stackoverflow.com/questions/58764017/read-the-timeout-of-a-django-cache-entry