cn.structure.starter.redisson.anno.CTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-redisson-starter Show documentation
Show all versions of structure-redisson-starter Show documentation
封装 redisson 将封装成启动器,并且对分布式锁和缓存进行封装
The newest version!
package cn.structure.starter.redisson.anno;
import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;
/**
*
* 缓存时间策略配置
*
*
* @author chuck
* @version 1.0.1
* @since 2020-12-23
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CTime {
/**
* 是否有时效果
*/
boolean isTime() default false;
/**
* 时间限制
*/
long time() default 0L;
/**
* 时间类型
*/
TimeUnit timeType() default TimeUnit.MINUTES;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy