ehcache / ehcache3

Ehcache 3.x line
http://www.ehcache.org
Apache License 2.0
2.02k stars 579 forks source link

what is the maximun allow key size and vaule size? #3143

Closed river320 closed 1 year ago

river320 commented 1 year ago

https://github.com/ben-manes/caffeine/issues/881 Thank you

chrisdennis commented 1 year ago

This is not throughly tested, but in principle object sizes and cache capacities are maintained as longs. The offheap areas are also long addressed. So I guess technically Long.MAX_VALUE for both key size and value size? The practical limit is going to be lower due to JVM memory constraints and a user's responsiveness requirements. In that sense the technical limit is not a very interesting one.