feat: 删除pom
Some checks failed
Redis序列化结构检查 / redis-schema-check (push) Has been cancelled

This commit is contained in:
2026-07-13 15:54:38 +08:00
parent 436460cfdb
commit 30e530c0bf
39 changed files with 164 additions and 159 deletions

View File

@@ -0,0 +1,26 @@
package jnpf.util;
import jnpf.model.TenantVO;
public class TenantDbContentCacheHelper {
private static final String CACHE_KEY_PREFIX = "tenant:db:content:";
private RedisUtil redisUtil;
public String buildCacheKey(String encode) {
return CACHE_KEY_PREFIX + encode;
}
public void cacheSuccess(String encode, TenantVO vo, Long expiresAtMs) {
CacheEnvelope envelope = new CacheEnvelope();
envelope.setVo(vo);
envelope.setExpiresAtMs(expiresAtMs);
redisUtil.insert(buildCacheKey(encode), JSON.toJSONString(envelope), 100);
}
public static class CacheEnvelope {
private TenantVO vo;
private Long expiresAtMs;
}
}

View File

@@ -0,0 +1,18 @@
package jnpf.util;
import jnpf.model.TenantVO;
public class TenantDbContentCacheHelper {
private static final String CACHE_KEY_PREFIX = "tenant:db:content:";
private RedisUtil redisUtil;
public String buildCacheKey(String encode) {
return CACHE_KEY_PREFIX + encode;
}
public void cacheSuccess(String encode, TenantVO vo) {
redisUtil.insert(buildCacheKey(encode), JSON.toJSONString(vo), 100);
}
}

View File

@@ -0,0 +1,15 @@
package jnpf.model;
public class TenantLinkModel {
public String id;
public String serviceName;
public String userName;
public String port;
public String fullName;
public String host;
public String password;
public String dbSchema;
public Integer configType;
public String dbType;
public String connectionStr;
}

View File

@@ -0,0 +1,8 @@
package jnpf.model;
import java.util.List;
public class TenantVO {
private String dbName;
private List<TenantLinkModel> linkList;
}