Skip to content

moznion/redis-script-manager-lettuce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis Script Manager for Java with lettuce Build Status Maven Central

Simple manager for scripting of Redis with lettuce.
This library is Java port of p5-Redis-Script.

Usage

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" });

See Also

Author

moznion (moznion@moznion.net)

License

MIT

About

Simple manager for scripting of Redis with lettuce

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages