-
-
Save wburns/25f4c9a5c879471e51ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// start transaction before this | |
Integer count = cache.getAdvancedCache().withFlags(Flag.FORCE_WRITE_LOCK).get(key); | |
cache.put(key, count+1); | |
// commit or rollback transaction depending on state |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment