feat: 添加 lettuce API
This commit is contained in:
@@ -2,6 +2,7 @@ package cn.hamster3.mc.plugin.core.common.api;
|
||||
|
||||
import cn.hamster3.mc.plugin.core.common.thread.NamedThreadFactory;
|
||||
import com.google.gson.Gson;
|
||||
import io.lettuce.core.RedisClient;
|
||||
import lombok.Getter;
|
||||
import net.kyori.adventure.platform.AudienceProvider;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -55,6 +56,12 @@ public abstract class CoreAPI {
|
||||
return getDataSource().getConnection();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return lettuce redis 客户端
|
||||
*/
|
||||
@NotNull
|
||||
public abstract RedisClient getRedisClient();
|
||||
|
||||
/**
|
||||
* @return GSON 工具
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user