| 123456789101112131415161718192021222324252627 |
- package com.yanfan.common.annotation;
- import java.lang.annotation.*;
- /**
- * @description: 缓存批量清除注解
- * @author: laizhenghua
- * @date: 2022/5/22 22:25
- */
- @Inherited
- @Documented
- @Retention(RetentionPolicy.RUNTIME)
- @Target({ElementType.TYPE, ElementType.METHOD})
- public @interface CacheBatchEvict {
- /**
- * 指定缓存组件
- */
- String cacheNames() default "";
- /**
- * key需要指定一个spEL表达式,通过spEL表达式获取方法参数
- */
- String key() default "";
- /**
- * 是否清除所有
- */
- boolean isClearAll() default false;
- }
|