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

com.ahyakamil.AKCache.sample.Sample Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy