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