Redis Java API
dependencies {
implementation 'com.github.therealdamt:JedisAPI:1.0-SNAPSHOT'
}
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.therealdamt</groupId>
<artifactId>JedisAPI</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
- Example Main Class
public static void main(String[] args) {
RedisHandler redisHandler = new RedisHandler("127.0.0.1", "", "redis"
, 6379, false);
redisHandler.send(new TestPacket());
}
- Example Packet Class
public class TestPacket implements RedisPacket {
@Override
public void onReceived() {
System.out.println("cool bro!");
}
@Override //[Optional]
public void onSend() {
System.out.println("sent");
}
}
Some of this project was inspired by an old project created by NoSequel / NV6
- Discord | bingbongwaseem