WebApplicationCacheUtils.java

23 lines | 471 B Blame History Raw Download
package com.salesmanager.shop.utils;

import com.salesmanager.core.business.utils.CacheUtils;
import org.springframework.stereotype.Component;

import javax.inject.Inject;

@Component
public class WebApplicationCacheUtils {
	
	@Inject
	private CacheUtils cache;
	
	public Object getFromCache(String key) throws Exception {
		return cache.getFromCache(key);
	}
	
	public void putInCache(String key, Object object) throws Exception {
		cache.putInCache(object, key);
	}

}