Hi,
My code needs to behave differently based on if key is present in leveldb. If key is present, I need to get the value as well.
Since this code is accessing the data using a wrapper library which provides containsKey method which internally tries to get the value using get(). So actually my code is calling get method twice if key is present.
I want to know if there will be a measurable perf improvement if I avoid this extra get call by changing our library's signature (given that the key will mostly be present in the cache second time).