debop / hibernate-redis

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

How can i configure cache setting in hiberante-redis.properties #133

Open tufgupmi opened 5 years ago

tufgupmi commented 5 years ago

Hello,

How this settings from redisson can be configured in your hibernate-redis.properties ?

hibernate.cache.redisson.[REGION_NAME].eviction.max_entries - max size of cache. Superfluous entries in Redis are evicted using LRU algorithm. 0 value means unbounded cache. Default value: 0

hibernate.cache.redisson.[REGION_NAME].expiration.time_to_live - time to live per cache entry in Redis. Defined in milliseconds. 0 value means this setting doesn't affect expiration. Default value: 0

hibernate.cache.redisson.[REGION_NAME].expiration.max_idle_time - max idle time per cache entry in Redis. Defined in milliseconds. 0 value means this setting doesn't affect expiration. Default value: 0

Can you provide some example,? In the document there is only configuration for expiryInSeconds,... and i don't see in redisson any parameter called expiryInSeconds.

Thank you