mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-27 01:30:51 +00:00
es优化
This commit is contained in:
parent
856c4c0667
commit
a55edf0408
@ -44,9 +44,9 @@ public class BookToEsSchedule {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 10秒钟导入一次
|
* 1分钟导入一次
|
||||||
*/
|
*/
|
||||||
@Scheduled(fixedRate = 1000 * 10)
|
@Scheduled(fixedRate = 1000 * 60)
|
||||||
public void saveToEs() {
|
public void saveToEs() {
|
||||||
if (cacheService.get(CacheKey.ES_TRANS_LOCK) == null) {
|
if (cacheService.get(CacheKey.ES_TRANS_LOCK) == null) {
|
||||||
cacheService.set(CacheKey.ES_TRANS_LOCK, "1", 60 * 5);
|
cacheService.set(CacheKey.ES_TRANS_LOCK, "1", 60 * 5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user