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

org.onetwo.common.cache.Cacheable Maven / Gradle / Ivy

There is a newer version: 4.7.2
Show newest version
package org.onetwo.common.cache;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Cacheable {

	String key() default "";
	String group() default CacheUtils.DEFAULT_CACHE_GROUP;
	int expire() default -1;//seconds
	boolean useKeyHashCode() default false;//do not use hashcode option if need to flush cache by group, because the hashcode will generated with method
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy