The redis key value cannot be found in the java backend query.

I can get it from the command line, but I just can"t get it in the code. How to solve it?

clipboard.png

clipboard.png

Jul.28,2021

solved, to set the set value in the code, the set value does not work on the command line, I do not know why, if you know, you can say

.
redisTemplate.opsForValue().set(mobile, smsCode, 10, TimeUnit.MINUTES);
``

127.0.0.1 keys 6379 > keys *
1) "17625907307"
2) "name"
3) "xfind:security:social.connect.17625907307"
4) "xacxedx00x05tx00x0b17625907307"
5) "1762590730"
127.0.0.1 br 6379 >

Menu