Package net.spy.memcached

Examples of net.spy.memcached.MemcachedClient.prepend()


            for (int i = 0; i < 100; i++) {
                final OperationFuture<Boolean> future = client.append(0, String.valueOf(i), "append");
                assertEquals(Boolean.TRUE, future.get());
            }
            for (int i = 0; i < 100; i++) {
                final OperationFuture<Boolean> future = client.prepend(0, String.valueOf(i), "prepend");
                assertEquals(Boolean.TRUE, future.get());
            }
            for (int i = 1; i < 100; i++) {
                assertEquals("prepend" + String.valueOf(i) + "append", client.get(String.valueOf(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.