Is your feature request related to a problem? Please describe
To address comments here - #10753 (comment)
We need to see if there is a way to simplify locking mechanism which is currently hard to read.
Currently while trying to put any new item onto Heap cache, we do it under a write lock. Any evictions occuring from onHeap cache happens under the same lock after which we put it onto disk cache. The whole flow is complex to understand, need to see if there is a way better to do it.
Describe the solution you'd like
NA
Related component
Search:Performance
Describe alternatives you've considered
No response
Additional context
No response