Examples of enableLocalCache()


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

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

    cc.set("key", "value1");
   
View Full Code Here

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

    String servers = (String) properties.get("servers");
    String[] serverlist = servers.split(",");
    String poolName = "XixibaseLC";
    CacheClientManager manager = CacheClientManager.getInstance(poolName);
    manager.initialize(serverlist);
    manager.enableLocalCache();
    manager.getLocalCache().setMaxCacheSize(1024 * 1024 * 1024);
   
    CacheClient cc = manager.createClient();
   
    System.out.println("XixibaseLC Client startup");
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.