The reason is predicted to be that you directly use django cache to perform the get operation. The get function will do some conversion on the key internally. As for the specifics, you still need to test and track it yourself
1 When getting the value, the key will be converted internally, that is
key = self.make_key(key, version=version)
That is, if the key is test2, the converted key is :1:test2. When you use the converted key to obtain it from your cache service, it will be empty
2 You can use ipython to set a value and then test whether get is ok
The reason is predicted to be that you directly use django cache to perform the get operation. The get function will do some conversion on the key internally. As for the specifics, you still need to test and track it yourself
1 When getting the value, the key will be converted internally, that is
That is, if the key is test2, the converted key is :1:test2. When you use the converted key to obtain it from your cache service, it will be empty
2 You can use ipython to set a value and then test whether get is ok