net.spy.memcached.protocol.ascii.StoreOperationImpl 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!
// Copyright (c) 2006 Dustin Sallings
package net.spy.memcached.protocol.ascii;
import net.spy.memcached.ops.OperationCallback;
import net.spy.memcached.ops.StoreOperation;
import net.spy.memcached.ops.StoreType;
/**
* Operation to store data in a memcached server.
*/
final class StoreOperationImpl extends BaseStoreOperationImpl
implements StoreOperation {
private final StoreType storeType;
public StoreOperationImpl(StoreType t, String k, int f, int e,
byte[] d, OperationCallback cb) {
super(t.name(), k, f, e, d, cb);
storeType = t;
}
public StoreType getStoreType() {
return storeType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy