All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.structure.starter.redisson.anno.RListCache Maven / Gradle / Ivy

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