redis-script-manager-lettuce

Simple manager for scripting of Redis with lettuce

License

License

Categories

Categories

Redis Data Databases Net
GroupId

GroupId

net.moznion
ArtifactId

ArtifactId

redis-script-manager-lettuce
Last Version

Last Version

0.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

redis-script-manager-lettuce
Simple manager for scripting of Redis with lettuce
Project URL

Project URL

https://github.com/moznion/redis-script-manager-lettuce
Source Code Management

Source Code Management

https://github.com/moznion/redis-script-manager-lettuce

Download redis-script-manager-lettuce

How to add to project

<!-- https://jarcasting.com/artifacts/net.moznion/redis-script-manager-lettuce/ -->
<dependency>
    <groupId>net.moznion</groupId>
    <artifactId>redis-script-manager-lettuce</artifactId>
    <version>0.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/net.moznion/redis-script-manager-lettuce/
implementation 'net.moznion:redis-script-manager-lettuce:0.1.2'
// https://jarcasting.com/artifacts/net.moznion/redis-script-manager-lettuce/
implementation ("net.moznion:redis-script-manager-lettuce:0.1.2")
'net.moznion:redis-script-manager-lettuce:jar:0.1.2'
<dependency org="net.moznion" name="redis-script-manager-lettuce" rev="0.1.2">
  <artifact name="redis-script-manager-lettuce" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.moznion', module='redis-script-manager-lettuce', version='0.1.2')
)
libraryDependencies += "net.moznion" % "redis-script-manager-lettuce" % "0.1.2"
[net.moznion/redis-script-manager-lettuce "0.1.2"]

Dependencies

compile (2)

Group / Artifact Type Version
net.moznion : redis-script-manager-core jar 0.4.0
biz.paluch.redis : lettuce jar 4.1.2.Final

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.assertj : assertj-core jar 3.4.1

Project Modules

There are no modules declared in this project.

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 ([email protected])

License

MIT

Versions

Version
0.1.2
0.1.1
0.1.0
0.0.1