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