List of usage examples for com.liferay.portal.kernel.cache PortalCache put
@Proxy public void put(K key, V value);
From source file:com.liferay.memleak.MemLeakPortlet.java
License:Open Source License
public void cacheHit(ActionRequest request, ActionResponse response) { final PortalCache<Serializable, Object> cache = SingleVMPoolUtil .getCache("com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter"); cache.put("test", "test"); for (int i = 0; i < 1000; i++) { cache.get("test"); }// ww w. j av a 2 s . c o m }