Redis as Hibernate second level cache

后端 未结 6 1092
悲哀的现实
悲哀的现实 2021-01-30 11:19

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 cac

6条回答
  •  礼貌的吻别
    2021-01-30 11:55

    Just found a github project on it. https://github.com/debop/hibernate-redis I think it's already done. It's missing some documentation. EDIT: Just found a better repository, with better documentation. https://github.com/Jongtae/hibernate-redis

    After building and importing the library into your project, it's as simple as any second level cache.

    true
    true
    net.daum.clix.hibernate.redis.RedisRegionFactory
    
    "redis.host"
    

    I'm thinking in using redis in some functionalities in the website I'm working on. Other interesting possibilities: distributed Locking, tomcat session manager.

提交回复
热议问题