package egovframework.rte.fdl.cmmn.cache.ehcache;
import egovframework.rte.fdl.cmmn.cache.Employee;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
@Service(value="ehcacheCacheableService" )
public class CacheableServiceImpl implements CacheableService{
@Cacheable("ehcache")
public Employee cacheableMethod(String num) {
Employee employee = new Employee();
employee.setNum(num);
employee.setName("anonymous"+num);
return employee;
}
}