All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.bootfastconfig.cache.CacheSimpleConfig Maven / Gradle / Ivy

Go to download

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";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy