From this doc, looks like caffeine cache is thread safe, when using manual cache population cache.put(key, value)
, what happens if put failed due to another thread is writing to the same key? (Or will it fail due to another thread is accessing the same key?). Sees this put method does not provide a return value to indicate success or failure, and would throw only on key value being null.
I seem to have find limited documentation, and would love to learn more about details regarding multi-thread access of the caffeine cache.