cn.structure.starter.redisson.anno.RCache 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.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RCache {
/**
* key
*
* @return key
*/
String key() default "";
/**
* 设置默认时长
*/
long time() default 1;
/**
* 设置单位
*/
TimeUnit timeType() default TimeUnit.DAYS;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy