Read the timeout of a django cache entry

試著忘記壹切 提交于 2020-03-25 17:51:50

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!