Example usage for com.liferay.portal.kernel.cache PortalCache put

List of usage examples for com.liferay.portal.kernel.cache PortalCache put

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.cache PortalCache put.

Prototype

@Proxy
    public void put(K key, V value);

Source Link

Usage

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

}