Commit 0b9c509
committed
Chore: Renamed Cache to LRUCache and extracted an interface and put under the old name to allow other implementations to be tested.
- Found and fixed minor bug where we tested max weight against count() instead of weight
- Found and fixed minor issue with possible long overflow.
- Adjusted tests but made explicit the ones who rely on the `LRUCache` implementation to test if settings are applied correctly.
While CacheBuilder#build() returns a `Cache` it still always returns the `LRUCache` implementation1 parent cec4ced commit 0b9c509
File tree
7 files changed
+942
-827
lines changed- server/src
- main/java/org/elasticsearch/common/cache
- test/java/org/elasticsearch
- common/cache
- index/fielddata
- x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc
7 files changed
+942
-827
lines changed
0 commit comments