Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.twitter.finagle.memcached.java;
import java.util.List;
import java.util.Map;
import com.twitter.finagle.Service;
import com.twitter.finagle.memcached.protocol.Command;
import com.twitter.finagle.memcached.protocol.Response;
import com.twitter.io.Buf;
import com.twitter.util.Future;
import com.twitter.util.Time;
/**
* A Java-friendly memcached client.
*/
public abstract class Client {
/**
* Construct a Client from a single Service
*
* @param finagleClient a Service
* @return a Client.
*/
public static Client newInstance(Service finagleClient) {
com.twitter.finagle.memcached.Client schmemcachedClient =
com.twitter.finagle.memcached.Client$.MODULE$.apply(finagleClient);
return new com.twitter.finagle.memcached.java.ClientBase(schmemcachedClient);
}
/**
* Get a key from the server.
*/
public abstract Future get(String key);
/**
* Get a key from the server together with a "cas unique" token used
* in cas operations.
*/
public abstract Future gets(String key);
/**
* Get a set of keys from the server.
* @return a Map[String, Buf] of all of the keys that the server had.
*/
public abstract Future