com.ideaaedi.extspringcache.annotation.RedisOop Maven / Gradle / Ivy
package com.ideaaedi.extspringcache.annotation;
import com.ideaaedi.extspringcache.enums.RedisExpireStrategyEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import java.time.temporal.ChronoUnit;
/**
* {@link Redis}中的信息的容器类
*
* P.S. 每个字段的语意见Redis中对应的字段即可
*
* @author JustryDeng
* @since 2020/11/4 19:08:31
*/
@Data
@Builder
@AllArgsConstructor
public class RedisOop {
private final String useRedisTemplate;
private final int expireTime;
private final ChronoUnit timeUnit;
private final RedisExpireStrategyEnum expireStrategy;
}