From 32e8e2deb8eaad80447562ab5ffe97be64f92264 Mon Sep 17 00:00:00 2001 From: Braydon Date: Sat, 16 Dec 2023 19:41:30 -0500 Subject: [PATCH] Fix Netty err with Redis? --- .../me/braydon/feather/database/impl/redis/Redis.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/me/braydon/feather/database/impl/redis/Redis.java b/src/main/java/me/braydon/feather/database/impl/redis/Redis.java index f2b070e..355813f 100644 --- a/src/main/java/me/braydon/feather/database/impl/redis/Redis.java +++ b/src/main/java/me/braydon/feather/database/impl/redis/Redis.java @@ -19,7 +19,7 @@ import me.braydon.feather.database.IDatabase; * @see RedisURI for the credentials class * @see Redis Official Site */ -public class Redis implements IDatabase, RedisURI> { +public class Redis implements IDatabase, String> { /** * The current {@link RedisClient} instance. */ @@ -43,14 +43,13 @@ public class Redis implements IDatabase, /** * Initialize a connection to this database. * - * @param credentials the optional credentials to use + * @param uri the optional credentials to use * @throws IllegalArgumentException if no credentials are provided * @throws IllegalStateException if already connected - * @see RedisURI for credentials */ @Override - public void connect(RedisURI credentials) throws IllegalArgumentException, IllegalStateException { - if (credentials == null) { // We need valid credentials + public void connect(String uri) throws IllegalArgumentException, IllegalStateException { + if (uri == null) { // We need valid credentials throw new IllegalArgumentException("No credentials defined"); } if (isConnected()) { // Already connected @@ -62,7 +61,7 @@ public class Redis implements IDatabase, if (connection != null) { // We have a connection, close it first connection.close(); } - client = RedisClient.create(credentials); // Create a new client + client = RedisClient.create(uri); // Create a new client connection = client.connect(); // Connect to the Redis server }