Package org.infinispan.grid.demo

Examples of org.infinispan.grid.demo.CacheDelegateImpl


*/
public class TestPut {

  public static void main(String[] args) {
   
    CacheDelegate delegate = new CacheDelegateImpl("infinispan-distribution.xml");
    delegate.getGenericCache().put("key", "value");
    System.out.println("key -> value added");
  }
View Full Code Here


*/
public class TestGet {


  public static void main(String[] args) {
    CacheDelegate delegate = new CacheDelegateImpl("infinispan-distribution.xml");
    Set<String> keySet = delegate.getGenericCache().keySet();
    System.out.println("List All Exist Entities");
    for (String key : keySet){
      System.out.println("  " + key + " -> " + delegate.getGenericCache().get(key));
    }
  }
View Full Code Here

TOP

Related Classes of org.infinispan.grid.demo.CacheDelegateImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.