caching - How to properly use Removal Listeners of google cache? -
the api described here: https://github.com/google/guava/wiki/cachesexplained#removal-listeners
considering example in link, , suppose google cache found connection evicted, thread obtained connection, google cache thread removed cached entry , called listener closed connection. if other thread wrote connection there error.
is above scenario possible happen? know if google cache obtain lock in method should ok, doubt if there lock when doing operation. such lock doesn't exist in java's concurrenthashmap example.
Comments
Post a Comment