소스 검색

Document Do("")

Gary Burd 12 년 전
부모
커밋
8736767bf9
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      redis/doc.go

+ 3 - 1
redis/doc.go

@@ -85,7 +85,9 @@
 // buffer. Next, the Do method receives all pending replies including the reply
 // buffer. Next, the Do method receives all pending replies including the reply
 // for the command just sent by Do. If any of the received replies is an error,
 // for the command just sent by Do. If any of the received replies is an error,
 // then Do returns the error. If there are no errors, then Do returns the last
 // then Do returns the error. If there are no errors, then Do returns the last
-// reply.
+// reply. If the command argument to the Do method is "", then the Do method
+// will flush the output buffer and receive pending replies without sending a
+// command.
 //
 //
 // Use the Send and Do methods to implement pipelined transactions.
 // Use the Send and Do methods to implement pipelined transactions.
 //
 //