Skip to content

therealdamt/JedisAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JedisAPI

Redis Java API


Gradle

	dependencies {
	        implementation 'com.github.therealdamt:JedisAPI:1.0-SNAPSHOT'
	}

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Maven

	<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>

How To Use

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

Credits

Some of this project was inspired by an old project created by NoSequel / NV6

  • Discord | bingbongwaseem

About

Redis Java API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages