The Redis plug-in for vRealize Orchestrator is a a plug-in which provides integration capabilities with multiple Redis instances.
Plug-in features:
- Operations with hashes, lists, sets, sorted sets, geo locations
- Operations for scripting with Lua
- Cluster configurations are currently not supported
The Redis plug-in supports vRO 6.0 and later.
#####Basic operations
//Store a simple key-value in redis
var statusCode = connection.defaultDatabase.set("test-key", "test-value");
//Retrieve value
var value = connection.defaultDatabase.get("test-key");
#####Scripting
var script = "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}";
//Evaluate script
var result = connection.defaultDatabase.eval(script, ["key1", "key2"], ["arg1", "arg2"]);
//Load and evaluate script by sha
var sha = connection.defaultDatabase.scriptLoad(script);
result = connection.defaultDatabase.evalsha(sha, ["key1", "key2"], ["arg1", "arg2"]);
The Redis plug-in for vRO uses the following third-party libraries:
- Jedis - a java-based Redis client.
- Google Guava - core libraries for Java-based projects, distributed under the Apache License, Version 2.0
- Apache Commons Pool - a library for object pooling