Created
October 16, 2015 09:18
-
-
Save tristantarrant/f3d3772e43e644b9b9f1 to your computer and use it in GitHub Desktop.
Infinispan Server HotRod Multiplication invocation example
This file contains hidden or 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
| RemoteCache<String, Integer> cache = cacheManager.getCache(); | |
| // Create the parameters for script execution | |
| Map<String, Object> params = new HashMap<>(); | |
| params.put("multiplicand", 10); | |
| params.put("multiplier", 20); | |
| // Run the script on the server, passing in the parameters | |
| Object result = cache.execute("multiplication.js", params); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment