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

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

Introduction

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

Prototype

@Proxy
    public void removeAll();

Source Link

Usage

From source file:br.com.thiagomoreira.liferay.plugins.ConfigurationAction.java

License:Apache License

@Override
public void processAction(PortletConfig portletConfig, ActionRequest actionRequest,
        ActionResponse actionResponse) throws Exception {

    super.processAction(portletConfig, actionRequest, actionResponse);

    PortalCache<Serializable, Object> portalCache = SingleVMPoolUtil
            .getCache(MarkdownDisplayPortlet.class.getName());

    portalCache.removeAll();
}

From source file:com.rivetlogic.portlet.whiteboard.portlet.WhiteboardPortlet.java

License:Open Source License

@Override
public void init() throws PortletException {
    super.init();
    @SuppressWarnings("rawtypes")
    PortalCache portalCache = MultiVMPoolUtil.getCache(WhiteboardHandler.CACHE_NAME);
    portalCache.removeAll();
}