修改缓存逻辑.

This commit is contained in:
lijiahang
2023-09-22 18:40:07 +08:00
parent fdc3bc6147
commit 6a3affdbd3
9 changed files with 571 additions and 34 deletions

View File

@@ -18,7 +18,7 @@ public interface FavoriteCacheKeyDefine {
.key("favorite:{}:{}")
.desc("收藏信息 ${type} ${userId}")
.type(Long.class)
.timeout(3, TimeUnit.DAYS)
.timeout(8, TimeUnit.HOURS)
.build();
}

View File

@@ -19,14 +19,14 @@ public interface TagCacheKeyDefine {
.key("tag:name:{}")
.desc("tag 名称 ${type}")
.type(TagCacheDTO.class)
.timeout(3, TimeUnit.DAYS)
.timeout(8, TimeUnit.HOURS)
.build();
CacheKeyDefine TAG_REL = new CacheKeyBuilder()
.key("tag:rel:{}:{}")
.desc("tag 引用 ${type} ${relId}")
.type(TagCacheDTO.class)
.timeout(3, TimeUnit.DAYS)
.timeout(8, TimeUnit.HOURS)
.build();
}