Releases: HyperSkys/pRedis
pRedis [v1.0.8-BETA2]
Download Instructions
To download and use pRedis go to the releases tab download the
pRedis.jar file and add it to your artifacts or dependencies, via the JitPack repository.
API Introduction
Below is an example of how you would create a packet that you would listen for.
import dev.hyperskys.predis.redis.packets.RedisPacket;
import dev.hyperskys.predis.redis.packets.annotations.Packet;
import org.json.JSONObject;
@Packet(name = "broadcast")
public class BroadcastPacket extends RedisPacket {
@Override
public void onReceive(JSONObject jsonObject) {
System.out.println(jsonObject.getString("message"));
}
}
Below is an example of how you would send a broadcast packet.
import dev.hyperskys.predis.redis.RedisDB;
import dev.hyperskys.predis.redis.utils.PacketBuilder;
public class PacketSender {
private static final RedisDB redisDB = new RedisDB(
"localhost",
6379,
false,
null,
5000
);
public static void main(String[] args) {
PRedis.init(PacketSender.class, redisDB);
redisDB.write(new PacketBuilder("broadcast").addData("message", "Hello, World!").build());
}
}
Below is an example of creating a database and a collection and adding a document to that collection, then getting the document.
import dev.hyperskys.predis.mongodb.MongoDB;
import dev.hyperskys.predis.mongodb.utils.DocumentBuilder;
import dev.hyperskys.predis.mongodb.mongo.annotations.GetDocument;
public class MongoTest {
private static final MongoDB mongoDB = new MongoDB("root:password@localhost:27017");
private static final @GetDocument(database = "Example", collection = "Example1", key = "Test") Document document;
public static void main(String[] args) {
mongoDB.insertDocument("RandomTest", "testing", new DocumentBuilder("test", "test")
.add("another-test", 123)
.build()
);
}
}
Project Intergration
There are two major different types of ways of integrating this API into your project, below will list the way of integrating while using Maven and Gradle.
Maven
For maven please add these to your repositories and dependencies.
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.HyperSkys</groupId>
<artifactId>pRedis</artifactId>
<version>1.0.8-BETA2</version>
</dependency>
Gradle
For gradle add this to your repositories and dependencies.
maven { url 'https://jitpack.io' }
implementation 'com.github.HyperSkys:Configurator:1.0.8-BETA2'
Thanks
Thanks to Badbird5907 for some example code, and some ideas that were used in this project, it would have not been possible without his code and help.
Discord
You can join my discord using this invite https://discord.gg/Y59DddqZZR please join the server if you have any issues or suggestions that you would like to make do not make random issues when you could just use the discord.
pRedis [v1.0.8-BETA]
Download Instructions
To download and use pRedis go to the releases tab download the pRedis.jar file and add it to your artifacts or dependencies, via the JitPack repository.
API Introduction
Below is an example of how you would create a packet that you would listen for.
import dev.hyperskys.predis.redis.packets.RedisPacket;
import dev.hyperskys.predis.redis.packets.annotations.Packet;
import org.json.JSONObject;
@Packet(name = "broadcast")
public class BroadcastPacket extends RedisPacket {
@Override
public void onReceive(JSONObject jsonObject) {
System.out.println(jsonObject.getString("message"));
}
}
Below is an example of how you would send a broadcast packet.
import dev.hyperskys.predis.redis.RedisDB;
import dev.hyperskys.predis.redis.utils.PacketBuilder;
public class PacketSender {
private static final RedisDB redisDB = new RedisDB(
"localhost",
6379,
false,
null,
5000
);
public static void main(String[] args) {
PRedis.init(PacketSender.class, redisDB);
redisDB.write(new PacketBuilder("broadcast").addData("message", "Hello, World!").build());
}
}
Below is an example of creating a database and a collection and adding a document to that collection.
import dev.hyperskys.predis.mongodb.MongoDB;
import dev.hyperskys.predis.mongodb.utils.DocumentBuilder;
public class MongoTest {
private static final MongoDB mongoDB = new MongoDB("root:password@localhost:27017");
public static void main(String[] args) {
mongoDB.insertDocument("RandomTest", "testing", new DocumentBuilder("test", "test")
.add("another-test", 123)
.build()
);
}
}
Project Intergration
There are two major different types of ways of integrating this API into your project, below will list the way of integrating while using Maven and Gradle.
Maven
For maven please add these to your repositories and dependencies.
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.HyperSkys</groupId>
<artifactId>pRedis</artifactId>
<version>1.0.8-BETA</version>
</dependency>
Gradle
For gradle add this to your repositories and dependencies.
maven { url 'https://jitpack.io' }
implementation 'com.github.HyperSkys:Configurator:1.0.8-BETA'
Thanks
Thanks to Badbird5907 for some example code, and some ideas that were used in this project, it would have not been possible without his code and help.
pRedis [v1.0.8-UNSTABLE]
Warning!
This is not a stable build and should not be used for production nor should it be used for development, this has been released for people wanting to take the risk to use new features.
Download Instructions
To download and use pRedis go to the releases tab download the pRedis.jar file and add it to your artifacts or dependencies, via the JitPack repository.
API Introduction
Below is an example of how you would create a packet that you would listen for.
import dev.hyperskys.predis.redis.packets.RedisPacket;
import dev.hyperskys.predis.redis.packets.annotations.Packet;
import org.json.JSONObject;
@Packet(packetType = "broadcast")
public class BroadcastPacket extends RedisPacket {
@Override
public void onReceive(JSONObject jsonObject) {
System.out.println(jsonObject.getString("message"));
}
}
Below is an example of how you would send a broadcast packet.
import dev.hyperskys.predis.redis.RedisDB;
import dev.hyperskys.predis.redis.utils.PacketBuilder;
public class PacketSender {
private static final RedisDB redisDB = new RedisDB(
"localhost",
6379,
false,
null,
5000
);
public static void main(String[] args) {
PRedis.init(PacketSender.class, redisDB);
redisDB.write(new PacketBuilder("broadcast").addData("message", "Hello, World!").build());
}
}
Below is an example of creating a database and a collection and adding a document to that collection.
import dev.hyperskys.predis.mongodb.MongoDB;
import dev.hyperskys.predis.mongodb.utils.DocumentBuilder;
public class MongoTest {
private static final MongoDB mongoDB = new MongoDB("root:password@localhost:27017");
public static void main(String[] args) {
mongoDB.insertDocument("RandomTest", "testing", new DocumentBuilder("test", "test")
.add("another-test", 123)
.build()
);
}
}
Project Intergration
There are two major different types of ways of integrating this API into your project, below will list the way of integrating while using Maven and Gradle.
Maven
For maven please add these to your repositories and dependencies.
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.HyperSkys</groupId>
<artifactId>pRedis</artifactId>
<version>1.0.8-UNSTABLE</version>
</dependency>
Gradle
For gradle add this to your repositories and dependencies.
maven { url 'https://jitpack.io' }
implementation 'com.github.HyperSkys:Configurator:1.0.8-UNSTABLE'
Thanks
Thanks to Badbird5907 for some example code, and some ideas that were used in this project, it would have not been possible without his code and help.
Discord
You can join my discord using this invite https://discord.gg/Y59DddqZZR please join the server if you have any issues or suggestions that you would like to make do not make random issues when you could just use the discord.
pRedis [v1.0.7-RELEASE]
Download Instructions
To download and use pRedis go to the releases tab download the pRedis.jar file and add it to your artifacts or dependencies, via the JitPack repository.
API Introduction
Below is an example of how you would create a packet that you would listen for.
import dev.hyperskys.predis.redis.packets.RedisPacket;
import dev.hyperskys.predis.redis.packets.annotations.Packet;
import org.json.JSONObject;
@Packet(packetType = "broadcast")
public class BroadcastPacket extends RedisPacket {
@Override
public void onReceive(JSONObject jsonObject) {
System.out.println(jsonObject.getString("message"));
}
}
Below is an example of how you would send a broadcast packet.
import dev.hyperskys.predis.redis.RedisDB;
import dev.hyperskys.predis.utils.PacketBuilder;
public class PacketSender {
private static final RedisDB redisDB = new RedisDB(
"localhost",
6379,
false,
null,
5000
);
public static void main(String[] args) {
PRedis.init(PacketSender.class, redisDB);
redisDB.write(new PacketBuilder("broadcast").addData("message", "Hello, World!").build());
}
}
Project Intergration
There are two major different types of ways of integrating this API into your project, below will list the way of integrating while using Maven and Gradle.
Maven
For maven please add these to your repositories and dependencies.
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.HyperSkys</groupId>
<artifactId>pRedis</artifactId>
<version>1.0.7-RELEASE</version>
</dependency>
Gradle
For gradle add this to your repositories and dependencies.
maven { url 'https://jitpack.io' }
implementation 'com.github.HyperSkys:Configurator:1.0.7-RELEASE'
Thanks
Thanks to Badbird5907 for some example code, and some ideas that were used in this project, it would have not been possible without his code and help.
Discord
You can join my discord using this invite https://discord.gg/Y59DddqZZR please join the server if you have any issues or suggestions that you would like to make do not make random issues when you could just use the discord.
pRedis [v1.0.6-RELEASE]
Download Instructions
To download and use pRedis go to the releases tab download the pRedis.jar file and add it to your artifacts or dependencies, via the JitPack repository.
API Introduction
Below is an example of how you would create a packet that you would listen for.
import dev.hyperskys.predis.redis.packets.RedisPacket;
import dev.hyperskys.predis.redis.packets.annotations.Packet;
import org.json.JSONObject;
@Packet(packetType = "broadcast")
public class BroadcastPacket extends RedisPacket {
@Override
public void onReceive(JSONObject jsonObject) {
System.out.println(jsonObject.getString("message"));
}
}
Below is an example of how you would send a broadcast packet.
import dev.hyperskys.predis.redis.RedisDB;
import dev.hyperskys.predis.utils.PacketBuilder;
public class PacketSender {
private static final RedisDB redisDB = new RedisDB(
"localhost",
6379,
false,
null,
5000
);
public static void main(String[] args) {
PRedis.init(PacketSender.class, redisDB);
redisDB.write(new PacketBuilder("broadcast").addData("message", "Hello, World!").build());
}
}
Project Intergration
There are two major different types of ways of integrating this API into your project, below will list the way of integrating while using Maven and Gradle.
Maven
For maven please add these to your repositories and dependencies.
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.HyperSkys</groupId>
<artifactId>pRedis</artifactId>
<version>1.0.6-RELEASE</version>
</dependency>
Gradle
For gradle add this to your repositories and dependencies.
maven { url 'https://jitpack.io' }
implementation 'com.github.HyperSkys:Configurator:1.0.6-RELEASE'
Thanks
Thanks to Badbird5907 for some example code, and some ideas that were used in this project, it would have not been possible without his code and help.
Discord
You can join my discord using this invite https://discord.gg/Y59DddqZZR please join the server if you have any issues or suggestions that you would like to make do not make random issues when you could just use the discord.
pRedis [v1.0.5-STABLE]
Download Instructions
To download and use pRedis go to the releases tab download the pRedis.jar file and add it to your artifacts or dependencies, via the JitPack repository.
API Introduction
Below is an example of how you would create a packet that you would listen for.
import dev.hyperskys.predis.redis.packets.RedisPacket;
import dev.hyperskys.predis.redis.packets.annotations.Packet;
import org.json.JSONObject;
@Packet(packetType = "broadcast")
public class BroadcastPacket extends RedisPacket {
@Override
public void onReceive(JSONObject jsonObject) {
System.out.println(jsonObject.getString("message"));
}
}
Below is an example of how you would send a broadcast packet.
import dev.hyperskys.predis.redis.RedisDB;
import dev.hyperskys.predis.utils.PacketBuilder;
public class PacketSender {
private static final RedisDB redisDB = new RedisDB(
"localhost",
6379,
false,
null,
5000
);
public static void main(String[] args) {
PRedis.init(PacketSender.class, redisDB);
redisDB.write(new PacketBuilder("broadcast").addData("message", "Hello, World!").build());
}
}
Project Intergration
There are two major different types of ways of integrating this API into your project, below will list the way of integrating while using Maven and Gradle.
Maven
For maven please add these to your repositories and dependencies.
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.HyperSkys</groupId>
<artifactId>pRedis</artifactId>
<version>1.0.5-STABLE</version>
</dependency>
Gradle
For gradle add this to your repositories and dependencies.
maven { url 'https://jitpack.io' }
implementation 'com.github.HyperSkys:Configurator:1.0.5-STABLE'
Discord
You can join my discord using this invite https://discord.gg/Y59DddqZZR please join the server if you have any issues or suggestions that you would like to make do not make random issues when you could just use the discord.
pRedis [v1.0.0-BETA]
Download Instructions
To download and use pRedis go to the releases tab download the pRedis.jar file and add it to your artifacts or dependencies, via the JitPack repository.
API Introduction
Below is an example of how you would create a packet that you would listen for.
import dev.hyperskys.predis.redis.packets.RedisPacket;
import dev.hyperskys.predis.redis.packets.annotations.Packet;
import org.json.JSONObject;
@Packet(packetType = "broadcast")
public class BroadcastPacket extends RedisPacket {
@Override
public void onReceive(JSONObject jsonObject) {
System.out.println(jsonObject.getString("message"));
}
}
Below is an example of how you would send a broadcast packet.
import dev.hyperskys.predis.redis.RedisDB;
import dev.hyperskys.predis.utils.PacketBuilder;
public class PacketSender {
private static final RedisDB redisDB = new RedisDB(
"localhost",
6379,
false,
null,
5000
);
public static void main(String[] args) {
PRedis.setMainClazz(PacketSender.class);
redisDB.write(new PacketBuilder("broadcast").addData("message", "Hello, World!").build());
}
}
Project Intergration
There are two major different types of ways of integrating this API into your project, below will list the way of integrating while using Maven and Gradle.
Maven
For maven please add these to your repositories and dependencies.
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.HyperSkys</groupId>
<artifactId>pRedis</artifactId>
<version>1.0.0-BETA</version>
</dependency>
Gradle
For gradle add this to your repositories and dependencies.
maven { url 'https://jitpack.io' }
implementation 'com.github.HyperSkys:Configurator:1.0.0-BETA'
Discord
You can join my discord using this invite https://discord.gg/Y59DddqZZR please join the server if you have any issues or suggestions that you would like to make do not make random issues when you could just use the discord.