public class Memcache
extends java.lang.Object
Constructor and Description |
---|
Memcache() |
Modifier and Type | Method and Description |
---|---|
boolean |
addServer(Env env,
java.lang.String host,
int port,
boolean persistent,
int weight,
int timeout,
int retryInterval)
Adds a server.
|
boolean |
close()
Closes the connection.
|
boolean |
connect(Env env,
java.lang.String host,
int port,
int timeout)
Connect to a server.
|
boolean |
delete(Env env,
java.lang.String key,
int timeout) |
boolean |
flush(Env env) |
Value |
get(Env env,
Value keys)
Returns a value.
|
java.lang.String |
getVersion()
Returns version information.
|
boolean |
pconnect(Env env,
java.lang.String host,
int port,
int timeout)
Connect to a server.
|
boolean |
set(Env env,
java.lang.String key,
Value value,
int flag,
int expire)
Sets a value.
|
boolean |
setCompressThreshold(int threshold,
double minSavings)
Sets the compression threshold
|
java.lang.String |
toString() |
public boolean addServer(Env env, java.lang.String host, int port, boolean persistent, int weight, int timeout, int retryInterval)
public boolean connect(Env env, java.lang.String host, int port, int timeout)
public boolean delete(Env env, java.lang.String key, int timeout)
public boolean flush(Env env)
public java.lang.String getVersion()
public boolean pconnect(Env env, java.lang.String host, int port, int timeout)
public boolean set(Env env, java.lang.String key, Value value, int flag, int expire)
public boolean setCompressThreshold(int threshold, double minSavings)
public boolean close()
public java.lang.String toString()
toString
in class java.lang.Object