com.schooner.MemCached.command
Class StorageCommand
java.lang.Object
com.schooner.MemCached.command.Command
com.schooner.MemCached.command.StorageCommand
public class StorageCommand
- extends Command
This command implements the set command using memcached UDP protocol.
- Since:
- 2.5.0
- Author:
- Meng Li
- See Also:
com.schooner.Memcached.StorageCommand
Constructor Summary |
StorageCommand(String cmdname,
String key,
Object value,
Date expiry,
Integer hashCode,
Long casUnique)
set request textline:
"set [noreply]\r\n" |
StorageCommand(String cmdname,
String key,
Object value,
Date expiry,
Integer hashCode,
Long casUnique,
TransCoder transCoder)
set request textline:
"set [noreply]\r\n" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static org.slf4j.Logger log
STORED
public static final byte[] STORED
NOT_STORED
public static final byte[] NOT_STORED
BLAND_DATA_SIZE
public final byte[] BLAND_DATA_SIZE
B_RETURN
public static final byte[] B_RETURN
StorageCommand
public StorageCommand(String cmdname,
String key,
Object value,
Date expiry,
Integer hashCode,
Long casUnique)
- set request textline:
"set [noreply]\r\n"
StorageCommand
public StorageCommand(String cmdname,
String key,
Object value,
Date expiry,
Integer hashCode,
Long casUnique,
TransCoder transCoder)
- set request textline:
"set [noreply]\r\n"
request
public short request(SchoonerSockIO sock)
throws IOException
- Overrides:
request
in class Command
- Throws:
IOException
response
public boolean response(SchoonerSockIO sock,
short rid)
throws IOException
- Throws:
IOException
Copyright © 2012 Schooner Information Technology. All Rights Reserved.