|
@@ -207,6 +207,10 @@ public class CacheService {
|
|
return searchKeywords;
|
|
return searchKeywords;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @CacheFind(key = "searchKeyword", delete = true)
|
|
|
|
+ public void deleteSearchKeywordsCache(String sex) {
|
|
|
|
+ }
|
|
|
|
+
|
|
@CacheFind(key = "smartRecommand")
|
|
@CacheFind(key = "smartRecommand")
|
|
public List<BookRes> setSmartRecommandCache(String sex) {
|
|
public List<BookRes> setSmartRecommandCache(String sex) {
|
|
QueryVO queryVO = new QueryVO();
|
|
QueryVO queryVO = new QueryVO();
|
|
@@ -215,6 +219,10 @@ public class CacheService {
|
|
return bookRes;
|
|
return bookRes;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @CacheFind(key = "smartRecommand", delete = true)
|
|
|
|
+ public void deleteSmartRecommandCache(String sex) {
|
|
|
|
+ }
|
|
|
|
+
|
|
@CacheFind(key = "topRecommend")
|
|
@CacheFind(key = "topRecommend")
|
|
public List<BookRes> setTopRecommendCache(String sex) {
|
|
public List<BookRes> setTopRecommendCache(String sex) {
|
|
QueryVO queryVO = new QueryVO();
|
|
QueryVO queryVO = new QueryVO();
|
|
@@ -223,6 +231,10 @@ public class CacheService {
|
|
return bookRes;
|
|
return bookRes;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @CacheFind(key = "topRecommend", delete = true)
|
|
|
|
+ public void deleteTopRecommendCache(String sex) {
|
|
|
|
+ }
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private UserService userService;
|
|
private UserService userService;
|
|
|
|
|
|
@@ -239,7 +251,8 @@ public class CacheService {
|
|
public EditBook getEditBookCache(Long bookId, Long chapterId) {
|
|
public EditBook getEditBookCache(Long bookId, Long chapterId) {
|
|
return bookService.getEditBookContent(bookId, chapterId);
|
|
return bookService.getEditBookContent(bookId, chapterId);
|
|
}
|
|
}
|
|
- @CacheFind(key = "edit_book",update = true)
|
|
|
|
|
|
+
|
|
|
|
+ @CacheFind(key = "edit_book", update = true)
|
|
public EditBook updateEditBookCache(Long bookId, Long chapterId) {
|
|
public EditBook updateEditBookCache(Long bookId, Long chapterId) {
|
|
return bookService.getEditBookContent(bookId, chapterId);
|
|
return bookService.getEditBookContent(bookId, chapterId);
|
|
}
|
|
}
|