public String storePhoto(String set, String md5, byte[] content)
	{
		String info = jedis.hget(set,md5);
		if(info == null)		//图片不存在
		{
			//只在第一次写的时候连接服务器
			if(storeSocket == null)
			{
				try {
//					storeSocket = AFUNIXSocket.newInstance();
//					storeSocket.connect(new AFUNIXSocketAddress(socketFile));
					storeSocket = new Socket();
					storeSocket.setTcpNoDelay(true);
					storeSocket.connect(new InetSocketAddress("localhost",serverport));
					
					storeos = new DataOutputStream(storeSocket.getOutputStream());
					storeis = new DataInputStream(storeSocket.getInputStream());
					
					
					
				} catch (IOException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
			}
			
			try {
				//action,set,md5,content的length写过去
				byte[] header = new byte[4];
				header[0] = ActionType.STORE;
				header[1] = (byte) set.getBytes().length;
				header[2] = (byte) md5.getBytes().length;
				storeos.write(header);
				storeos.writeInt(content.length);
				
				//set,md5,content的实际内容写过去
				storeos.write(set.getBytes());
				storeos.write(md5.getBytes());
				storeos.write(content);
				storeos.flush();
				int count = storeis.readInt();			//时间大部分可以保持在个位数
				if(count == -1)
					return jedis.hget(set,md5);
				String s = new String(readBytes(count,storeis));
				return s;
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
				return null;
			}
			
		}
		else
		{
			System.out.println(set+"."+md5+" exists");
			jedis.hincrBy(set, "r."+md5, 1);				
			return info;
		}
	}