lhotari commented on code in PR #25293:
URL: https://github.com/apache/pulsar/pull/25293#discussion_r2940864338


##########
pulsar-broker/src/main/java/org/apache/pulsar/utils/SimpleCache.java:
##########


Review Comment:
   `computeIfAbsent` would be used to ensure that duplicates aren't added to 
the map and locking could be handled in `ExpirableValue` level to avoid shared 
locks and just have a per-key lock.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to