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); } }