SearchCacheAble.java
885 Bytes
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
38
39
40
41
42
43
44
45
46
47
48
49
package com.yoho.search.aop.cache;
import com.yoho.search.cache.CacheType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface SearchCacheAble {
/**
* 缓存名称
*
* @return
*/
public String cacheName();
/**
* 缓存时间
*
* @return
*/
public int cacheInMinute();
/**
* 缓存类型,默认search_redis
*
* @return
*/
public CacheType cacheType() default CacheType.SEARCH_REDIS;
/**
* 包含的参数-优先级比去除的参数高
*
* @return
*/
public String[] includeParams() default {};
/**
* 去除的参数
*
* @return
*/
public String[] excludeParams() default {};
}