com.ahyakamil.AKCache.sample.Sample 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.sample;
import com.ahyakamil.AKCache.annotation.AKCache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Sample {
Logger logger = LoggerFactory.getLogger(this.getClass());
@AKCache
public String case1() {
logger.info("I'm in method..");
return "What a beautiful day!";
}
@AKCache(ttl = 180)
public String case2(String quote) {
logger.info("I'm in method..");
return quote;
}
}