is it possible to use the ortus redis cache extens...
# box-products
b
is it possible to use the ortus redis cache extension for the secondary level cache of ORM?
b
@birdy1980 Not directly without writing your own cache adapter for Hibernate that talked to Lucee
What is far more likely to exist and would be far less work to implement would be to find an existing Hibernate Redis adapter and just point Hibernate directly at your Redis server.
I did this years ago using a Memcached adapter to point to a Couchbase server. It required a custom hibernate XML config file. I haven't looked in years to see if that stuff still works.
What would be really cool is if the Lucee engine itself had a generic adapater it could register with hibernate to point to any configured Lucee cache which is more what you were asking for. However, I highly doubt the Lucee devs would care enough to implement anything like that in the core just because they don't really care about hibernate and not a lot of CF devs use it.
It would be nice to at least put in a ticket for that idea.
l
I added a ticket and have a POC I am working on
I will squeeze this capability in our 2.0 release
Testing on Hibernate versions right onw
since we have to supppoort 3 and 5