cn.structure.starter.redisson.anno.WCache 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.*;
/**
*
* 写缓存注解
*
*
* @author chuck
* @version 1.0.1
* @since 2020-12-23
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface WCache {
/**
* keyName
*/
String key() default "";
/**
* 是否對象緩存
*/
boolean isObjCache() default true;
/**
* 更新集合配置
*/
CList list() default @CList;
/**
* Map 配置
*/
CMap map() default @CMap;
/**
* 时间配置
*/
CTime time() default @CTime;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy