Package com.danga.MemCached

Examples of com.danga.MemCached.MemCachedClient


            //String[] serverList = servers.split(",?[ *]");
            SockIOPool pool = SockIOPool.getInstance("livePool");
            pool.setServers(serverList);
            pool.initialize();

            cache = new MemCachedClient();
            //cache.setPoolName("livePool");
        }              
    }
View Full Code Here


        if (cache == null) {
            SockIOPool pool = SockIOPool.getInstance("livePool");
            pool.setServers(servers);
            pool.initialize();

            cache = new MemCachedClient();
            //cache.setPoolName("livePool");
        }
    }
View Full Code Here

    // grab an instance of our connection pool
    SockIOPool pool = null;
    if (StringUtils.isBlank(getPoolName())) {
      pool = SockIOPool.getInstance();
      mcc = new MemCachedClient();
    } else {
      pool = SockIOPool.getInstance(getPoolName());
      mcc = new MemCachedClient(getPoolName());
    }

    // Integer[] weights = { 5, 1 };

    // set the servers and the weights
View Full Code Here

        pool.setSocketConnectTO(getSocketConnectTimeout());

        // initialize the connection pool
        pool.initialize();

        MemCachedClient client =
                new MemCachedClient(
                        getClassLoader(),
                        getErrorHandler(),
                        poolName);
        client.setCompressEnable(isCompressEnable());
        client.setDefaultEncoding(getDefaultEncoding());

        return new DangaMemcache(client, poolName);
    }
View Full Code Here

TOP

Related Classes of com.danga.MemCached.MemCachedClient

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.