Redis Script Manager for Java with lettuce
![Maven Central](https://camo.githubusercontent.com/fb3ec5e915baee6c0951e624b888e9769fbf0e9e9aa976275ea6f183e59d1ce3/68747470733a2f2f6d6176656e2d6261646765732e6865726f6b756170702e636f6d2f6d6176656e2d63656e7472616c2f6e65742e6d6f7a6e696f6e2f72656469732d7363726970742d6d616e616765722d6c6574747563652f62616467652e737667)
Simple manager for scripting of Redis with lettuce.
This library is Java port of p5-Redis-Script.
final StatefulRedisConnection<String, String> connect =
RedisClient.create().connect(new RedisURI("127.0.0.1", 6379, 10, TimeUnit.SECONDS));
final RedisCommands<String, String> commands = connect.sync();
final LettuceScriptManager<String, String> scriptManager =
new LettuceScriptManager<>(commands,
"redis.call('SET', KEYS[1], ARGV[1])",
ScriptOutputType.VALUE);
scriptManager.eval(new String[] { "sample_key" }, new String[] { "42" });
- https://github.com/moznion/redis-script-manager-core
- https://github.com/moznion/redis-script-manager-jedis
- https://github.com/shogo82148/p5-Redis-Script
moznion (moznion@moznion.net)
MIT