// Path: architecture-cache/src/main/java/com/ea/core/cache/ICacheCommands.java
// public interface ICacheCommands {
// 
// 	public Boolean add(String key, String value, int seconds) throws Exception;
// 	
// 	public Boolean set(String key, String value, int seconds) throws Exception;
// 	
// 	public Boolean replace(String key, String value, int seconds) throws Exception;
// 	
// 	public Boolean expire(String key, int seconds) throws Exception;
// 	
// 	public Set<String> keys(final String pattern) throws Exception;
// 	
// 	public String get(String key) throws Exception;
// 	
// 	public Boolean exists(String key) throws Exception;
// 	
// 	public Boolean delete(String key) throws Exception;
// 
// 	public Boolean append(String key, String value) throws Exception;
//     
//     public void shutdown() throws Exception;
//     
//     public Object getCommands();
// }


import java.net.InetSocketAddress;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import net.rubyeye.xmemcached.KeyIterator;
import net.rubyeye.xmemcached.MemcachedClient;
import com.ea.core.cache.ICacheCommands;
package com.ea.core.cache.memcached.commands;




/**
 * Memcached命令封装
 * 
 * @author yiyongfei
 *
 */
public class MemcachedCommands implements ICacheCommands {
	private MemcachedClient commands;
// Path: architecture-cache/src/main/java/com/ea/core/cache/ICacheCommands.java
// public interface ICacheCommands {
// 
// 	public Boolean add(String key, String value, int seconds) throws Exception;
// 	
// 	public Boolean set(String key, String value, int seconds) throws Exception;
// 	
// 	public Boolean replace(String key, String value, int seconds) throws Exception;
// 	
// 	public Boolean expire(String key, int seconds) throws Exception;
// 	
// 	public Set<String> keys(final String pattern) throws Exception;
// 	
// 	public String get(String key) throws Exception;
// 	
// 	public Boolean exists(String key) throws Exception;
// 	
// 	public Boolean delete(String key) throws Exception;
// 
// 	public Boolean append(String key, String value) throws Exception;
//     
//     public void shutdown() throws Exception;
//     
//     public Object getCommands();
// }


// Path: architecture-cache/src/main/java/com/ea/core/cache/memcached/commands/MemcachedCommands.java
import java.net.InetSocketAddress;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import net.rubyeye.xmemcached.KeyIterator;
import net.rubyeye.xmemcached.MemcachedClient;
import com.ea.core.cache.ICacheCommands;

package com.ea.core.cache.memcached.commands;




/**
 * Memcached命令封装
 * 
 * @author yiyongfei
 *
 */
public class MemcachedCommands implements ICacheCommands {
	private MemcachedClient commands;
	private List<InetSocketAddress> socketAddress;