com.ahyakamil.AKCache.annotation.AKCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of akcache Show documentation
Show all versions of akcache Show documentation
Simple and powerful caching
package com.ahyakamil.AKCache.annotation;
import com.ahyakamil.AKCache.constant.UpdateType;
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.METHOD)
public @interface AKCache {
UpdateType updateType() default UpdateType.SMART;
Class serializeClass() default Object.class;
int ttl() default 86400;
String conditionRegex() default ".*";
}