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