debop / hibernate-redis

hibernate 2nd level cache privder using redis
Apache License 2.0
357 stars 181 forks source link

Implement "hibernate.cache.keys_factory" in hibernate 5.x & 5.2 #126

Closed ti3r closed 5 years ago

ti3r commented 6 years ago

Hibernate 5.x allows to set a Custom CacheKeysFactory if needed but library does not allow it.

According to hibernate doc: default (wraps identitifers in the tuple) simple (uses identifiers as keys without any wrapping) *fully qualified class name that implements org.hibernate.cache.spi.CacheKeysFactory should be supported by providers but DefaultCacheKeysFactory is used all around

https://docs.jboss.org/hibernate/orm/5.0/userguide/html_single/Hibernate_User_Guide.html#caching

ti3r commented 6 years ago

Created the Issue just to follow on the work. PR is waiting for review.

ti3r commented 5 years ago

This should be fixed after merge of PR. https://github.com/debop/hibernate-redis/pull/127