Skip to content

Instantly share code, notes, and snippets.

@tristantarrant
Created October 16, 2015 09:18
Show Gist options
  • Select an option

  • Save tristantarrant/f3d3772e43e644b9b9f1 to your computer and use it in GitHub Desktop.

Select an option

Save tristantarrant/f3d3772e43e644b9b9f1 to your computer and use it in GitHub Desktop.
Infinispan Server HotRod Multiplication invocation example
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