Redis作为Hibernate二级缓存 [英] Redis as Hibernate second level cache

查看:94
本文介绍了Redis作为Hibernate二级缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有个疯狂的主意:将Redis用作休眠的第二个缓存级别。 Redis是一个内存数据存储,它支持复制,管道等。目标是在许多tomcat节点之间共享休眠缓存。基本实现应该是对Hibernate缓存对象键和值进行序列化,然后将所有内容存储到Redis数据库中。您如何看待这个想法?

I have a crazy idea : use Redis as hibernate second cache level. Redis is an in-memory datastore, it supports replication, pipeline, etc.. The goal is to share the hibernate cache between many tomcat nodes. The basic implementation should be to serailize Hibernate cache object key and value and store all into a Redis database. What do you think about that idea ?

最诚挚的问候,

朱利叶斯

推荐答案

我用Redis制作了Hibernate 2级缓存

I made Hibernate 2nd level cache with Redis

检查它!

https://github.com/debop/hibernate-redis

这篇关于Redis作为Hibernate二级缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆