net.spy.memcached.protocol.ascii.ConcatenationOperationImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spymemcached Show documentation
Show all versions of spymemcached Show documentation
A simple, asynchronous, single-threaded Memcached client written in java.
The newest version!
package net.spy.memcached.protocol.ascii;
import net.spy.memcached.ops.ConcatenationOperation;
import net.spy.memcached.ops.ConcatenationType;
import net.spy.memcached.ops.OperationCallback;
/**
* Operation for ascii concatenations.
*/
public class ConcatenationOperationImpl extends BaseStoreOperationImpl
implements ConcatenationOperation {
private final ConcatenationType concatType;
public ConcatenationOperationImpl(ConcatenationType t, String k,
byte[] d, OperationCallback cb) {
super(t.name(), k, 0, 0, d, cb);
concatType = t;
}
public long getCasValue() {
// ASCII cat ops don't have CAS.
return 0;
}
public ConcatenationType getStoreType() {
return concatType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy