国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

python2.7 - When using django-redis, the data in redis cannot be accessed after connecting?
曾經(jīng)蠟筆沒有小新
曾經(jīng)蠟筆沒有小新 2017-05-16 13:18:41
0
1
1093

Using dango-redis, when using redis for caching, the data in redis cannot be accessed
Configuration items:

Data in redis

function in views:

Ask God for guidance

曾經(jīng)蠟筆沒有小新
曾經(jīng)蠟筆沒有小新

reply all(1)
迷茫

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template