com.github.bootfastconfig.cache.CacheSimpleConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boot-fast-config-cache Show documentation
Show all versions of boot-fast-config-cache Show documentation
Parent pom providing dependency and plugin management for applications
built with Maven
The newest version!
package com.github.bootfastconfig.cache;
import com.github.bootfastconfig.springtool.StringUtil;
import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;
/**
* The interface Cache simple config.
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface CacheSimpleConfig {
/**
* Cache name string.
*
* @return the string
*/
String cacheName() default StringUtil.EMPTY;
/**
* Duration long.
*
* @return the long
*/
long duration() default 120L;
/**
* Unit time unit.
*
* @return the time unit
*/
TimeUnit unit() default TimeUnit.MINUTES;
/**
* Maximum size long.
*
* @return the long
*/
long maximumSize() default 300L;
/**
* Cache type string.
*
* @return the string
*/
String cacheType() default StringUtil.EMPTY;
/**
* The interface List.
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@interface List {
CacheSimpleConfig[] value();
}
/**
* The interface Cache annotation type.
*/
public interface CacheAnnotationType {
String REDIS = "REDIS";
String LOCAL = "local";
}
}