net.spy.memcached.protocol.ascii.GetOperationImpl 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 java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import net.spy.memcached.ops.GetOperation;
/**
* Operation for retrieving data.
*/
class GetOperationImpl extends BaseGetOpImpl implements GetOperation {
private static final String CMD="get";
public GetOperationImpl(String key, GetOperation.Callback c) {
super(CMD, c, Collections.singleton(key));
}
public GetOperationImpl(Collection k, GetOperation.Callback c) {
super(CMD, c, new HashSet(k));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy