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

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

问题描述

我有一个疯狂的想法:使用 Redis 作为休眠的第二级缓存.Redis 是一个内存数据存储,它支持复制、管道等.目标是在许多 tomcat 节点之间共享休眠缓存.基本实现应该是对Hibernate缓存对象的key和value进行serailize,全部存储到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 二级缓存

I made Hibernate 2nd level cache with Redis

检查一下!

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

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

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