Skip to content

Instantly share code, notes, and snippets.

@teja463
Created February 22, 2016 07:32
Show Gist options
  • Save teja463/0733db1c9c4a4aae41d8 to your computer and use it in GitHub Desktop.
Save teja463/0733db1c9c4a4aae41d8 to your computer and use it in GitHub Desktop.
public class {
public static void main(String[] args){
PortalCache<Serializable, Object> cache = SingleVMPoolUtil.getCache("testCache");
// Adding values in to cache.
cache.put("LR","Liferay");
cache.put("WPS", "WebSphere Portal Server");
// Retrieving values from cache.
Object object = cache.get("LR");
String lr = String.valueOf(object);
System.out.println("lr : "+lr);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment