Package com.xixibase.cache

Examples of com.xixibase.cache.CacheClientManager.createClient()


    String[] serverlist = servers.split(",");

    CacheClientManager manager = CacheClientManager.getInstance("example");
    manager.initialize(serverlist, false);
   
    CacheClient cc = manager.createClient();
   
    cc.replace("key", "value1");
    System.out.println(cc.get("key"));
   
    long cacheID1 = cc.add("key", "value2");
View Full Code Here


    String[] serverlist = servers.split(",");

    CacheClientManager manager = CacheClientManager.getInstance("example");
    manager.initialize(serverlist);
   
    CacheClient cc = manager.createClient();
   
    cc.set("key", "value1");
    CacheItem item1 = cc.gets("key");
    System.out.println(item1.getValue());
   
View Full Code Here

    manager.initialize(serverlist, false);
   
    // enable local cache
    manager.enableLocalCache();
   
    CacheClient cc = manager.createClient();

    cc.set("key", "value1");
   
    // get the object from remote Xixibase server
    System.out.println(cc.get("key"));
View Full Code Here

    String[] serverlist = servers.split(",");

    CacheClientManager manager = CacheClientManager.getInstance("example");
    manager.initialize(serverlist, true);
   
    CacheClient cc = manager.createClient();
   
    cc.add("key", "value1");
    System.out.println(cc.get("key"));
   
    cc.add("key", "value2");
View Full Code Here

    manager.initialize(serverlist, false);
   
    int groupID1 = 1;
    int groupID2 = 2;
   
    CacheClient cc1 = manager.createClient(groupID1);
    CacheClient cc2 = manager.createClient(groupID2);
   
    cc1.set("key", "value1");
    cc2.set("key", "value2");
   
View Full Code Here

   
    int groupID1 = 1;
    int groupID2 = 2;
   
    CacheClient cc1 = manager.createClient(groupID1);
    CacheClient cc2 = manager.createClient(groupID2);
   
    cc1.set("key", "value1");
    cc2.set("key", "value2");
   
    System.out.println(cc1.get("key"));
View Full Code Here

    String[] serverlist = servers.split(",");

    CacheClientManager manager = CacheClientManager.getInstance("example");
    manager.initialize(serverlist, true);
   
    CacheClient cc = manager.createClient();
   
    cc.set("key", "value");
    System.out.println(cc.get("key"));
   
    cc.delete("key");
View Full Code Here

    String[] serverlist = servers.split(",");

    CacheClientManager manager = CacheClientManager.getInstance("example");
    manager.initialize(serverlist, false);
   
    CacheClient cc = manager.createClient();
   
    cc.set("xixi", "Hello World!");
    String value = (String)cc.get("xixi");
    System.out.println(value);
   
View Full Code Here

    String[] serverlist = servers.split(",");

    CacheClientManager manager = CacheClientManager.getInstance("example");
    manager.initialize(serverlist, false);
   
    CacheClient cc = manager.createClient();
   
    long cacheID1 = cc.set("key", "value1");
    System.out.println(cc.get("key"));
   
    long cacheID2 = cc.set("key", "value2");
View Full Code Here

    String[] serverlist = servers.split(",");
    String poolName = "Xixibase";
    CacheClientManager manager = CacheClientManager.getInstance(poolName);
    manager.initialize(serverlist);
   
    CacheClient cc = manager.createClient();
    cc.getTransCoder();
    System.out.println("Xixibase Client startup");
    warmUp(cc);

    for (int i = 0; i < THREADS.length; i++) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.