mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-27 01:30:51 +00:00
perf: 设置小说推荐缓存时间
This commit is contained in:
parent
3f009dc1f9
commit
415bf8a64c
@ -116,7 +116,7 @@ public class BookServiceImpl implements BookService {
|
|||||||
}
|
}
|
||||||
result = new ObjectMapper().writeValueAsString(
|
result = new ObjectMapper().writeValueAsString(
|
||||||
list.stream().collect(Collectors.groupingBy(BookSettingVO::getType)));
|
list.stream().collect(Collectors.groupingBy(BookSettingVO::getType)));
|
||||||
cacheService.set(CacheKey.INDEX_BOOK_SETTINGS_KEY, result);
|
cacheService.set(CacheKey.INDEX_BOOK_SETTINGS_KEY, result, 3600*24);
|
||||||
}
|
}
|
||||||
return new ObjectMapper().readValue(result, Map.class);
|
return new ObjectMapper().readValue(result, Map.class);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user