40

Spring boot集成Redis(2)—RedisTemplate的使用来存储Map集合-墨营的博客

 5 years ago
source link: http://blog.51cto.com/13501268/2312854
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
前言:上一篇文章我们用的是StringRedisTemplate,但是它存在一点问题,也迫使我重新写了代码,问题是:在我们往缓存中存入数字形式的String类型时,我们在利用Springcould将获取到的数据发送到另一服务时,我们发现数据已经被强转为Integer类型了,因为我们可能传输的数据庞大,类型多样,为了统一类型,以及开发方便,所以我将缓存改成RedisTemplate这种类型,进行增删

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK