修改缓存逻辑.
This commit is contained in:
@@ -18,7 +18,7 @@ public interface FavoriteCacheKeyDefine {
|
||||
.key("favorite:{}:{}")
|
||||
.desc("收藏信息 ${type} ${userId}")
|
||||
.type(Long.class)
|
||||
.timeout(3, TimeUnit.DAYS)
|
||||
.timeout(8, TimeUnit.HOURS)
|
||||
.build();
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user