解决了,要在代码中设置set值,在命令行中set值不起作用,我也不知道为什么,有知道的可以说下 redisTemplate.opsForValue().set(mobile, smsCode, 10, TimeUnit.MINUTES); `` 127.0.0.1:6379> keys *1) "17625907307"2) "name"3) "xfind:security:social.connect.17625907307"4) "xacxedx00x05tx00x0b17625907307"5) "1762590730"127.0.0.1:6379>
解决了,要在代码中设置set值,在命令行中set值不起作用,我也不知道为什么,有知道的可以说下
127.0.0.1:6379> keys *
1) "17625907307"
2) "name"
3) "xfind:security:social.connect.17625907307"
4) "xacxedx00x05tx00x0b17625907307"
5) "1762590730"
127.0.0.1:6379>