redis
存入redis
this.redisTemplate.opsForValue().set("key",value);
this.redisTemplate.expire("ke y",600(有效时间), TimeUnit.SECONDS(时间单位));
取出redis
redisTemplate.opsForValue().get("key");
清除redis
redisTemplate.delete(key);
存入redis
this.redisTemplate.opsForValue().set("key",value);
this.redisTemplate.expire("ke y",600(有效时间), TimeUnit.SECONDS(时间单位));
取出redis
redisTemplate.opsForValue().get("key");
清除redis
redisTemplate.delete(key);