add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.dobbinsoft.fw.support.annotation;
 
import java.lang.annotation.*;
 
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rize
 * Date: 2020/3/28
 * Time: 13:59
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AspectCommonCache {
 
    /**
     * 键值
     * @return
     */
    String value() default "";
 
    int[] argIndex() default {};
 
    /**
     * 需要反序列化为List泛型才需要传入。否则会自动格式化为 List<JSONObject> 是不影响
     * @return
     */
    Class arrayClass() default Object.class;
 
    /**
     * 小于0代表不过期
     * @return
     */
    int second() default 60 * 60 * 24;
 
}