cn.structure.starter.redisson.anno.RListCache 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 org.redisson.api.SortOrder;
import java.lang.annotation.*;
/**
*
* 读缓存注解默认降序执行结构为 sort desc + 分页值存key 基础
*
*
* @author chuck
* @version 1.0.1
* @since 2020-12-23
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RListCache {
/**
* key
*/
String key() default "";
/**
* 设置分页的大小
*/
String page() default "1";
/**
* 默认大小如果是集合需要设置大小
*/
String size() default "20";
/**
* 排序
*/
SortOrder sort() default SortOrder.DESC;
/**
* 和map关联的KEY
*/
String mapKey() default "";
/**
* 读取集合的data类型是data 还是key
*/
CList.ListType value() default CList.ListType.DATA;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy