修改缓存时间.

This commit is contained in:
lijiahang
2024-04-23 16:38:47 +08:00
parent c14c0248cb
commit f146989a1a
9 changed files with 19 additions and 18 deletions

View File

@@ -22,7 +22,7 @@ public interface CommandSnippetCacheKeyDefine {
.desc("命令片段列表 ${userId}")
.type(CommandSnippetCacheDTO.class)
.struct(RedisCacheStruct.HASH)
.timeout(1, TimeUnit.DAYS)
.timeout(8, TimeUnit.HOURS)
.build();
CacheKeyDefine SNIPPET_GROUP = new CacheKeyBuilder()
@@ -30,7 +30,7 @@ public interface CommandSnippetCacheKeyDefine {
.desc("命令片段分组 ${userId}")
.type(CommandSnippetGroupCacheDTO.class)
.struct(RedisCacheStruct.HASH)
.timeout(1, TimeUnit.DAYS)
.timeout(8, TimeUnit.HOURS)
.build();
}

View File

@@ -23,7 +23,7 @@ public interface HostCacheKeyDefine {
.desc("主机列表")
.type(HostCacheDTO.class)
.struct(RedisCacheStruct.HASH)
.timeout(1, TimeUnit.DAYS)
.timeout(8, TimeUnit.HOURS)
.build();
CacheKeyDefine HOST_KEY = new CacheKeyBuilder()
@@ -31,7 +31,7 @@ public interface HostCacheKeyDefine {
.desc("主机秘钥列表")
.type(HostKeyCacheDTO.class)
.struct(RedisCacheStruct.HASH)
.timeout(1, TimeUnit.DAYS)
.timeout(8, TimeUnit.HOURS)
.build();
CacheKeyDefine HOST_IDENTITY = new CacheKeyBuilder()
@@ -39,7 +39,7 @@ public interface HostCacheKeyDefine {
.desc("主机身份列表")
.type(HostIdentityCacheDTO.class)
.struct(RedisCacheStruct.HASH)
.timeout(1, TimeUnit.DAYS)
.timeout(8, TimeUnit.HOURS)
.build();
}