com.luues.redis.annotation.EnableRedisCache Maven / Gradle / Ivy
package com.luues.redis.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface EnableRedisCache {
boolean cusCache() default false; //=true 将开启自定义缓存,使用@Cacheable等注解时,value跟上#time(单位秒)为过期时间(value = "test#60")
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy