KKSU
2024-08-22 7a372033d44ba48383d9d1bc97e5d583b26a266f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package cc.mrbird.febs.mall.quartz;
 
import cc.mrbird.febs.common.utils.RedisUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
/**
 * @author wzy
 * @date 2022-06-07
 **/
@Slf4j
@Component
public class RedisLinkHoldJob {
 
    @Autowired
    private RedisUtils redisUtils;
 
 
    @Scheduled(cron = "0/5 * * * * ?")
    public void redisLinkHold() {
        redisUtils.set("redis_link_hold", 1);
    }
}