]> git.saurik.com Git - redis.git/blobdiff - client-libraries/ruby/lib/pipeline.rb
minor fix for Solaris boxes
[redis.git] / client-libraries / ruby / lib / pipeline.rb
index deaedd159547e67318cfb501ab10fadf48061703..f92b96db527f97223c7b54ff20d63d3da4f504dc 100644 (file)
@@ -9,10 +9,7 @@ class Redis
       @commands = []
     end
     
-    def get_response
-    end
-    
-    def write(data)
+    def execute_command(data)
       @commands << data
       write_and_read if @commands.size >= BUFFER_SIZE
     end
@@ -22,10 +19,10 @@ class Redis
     end
     
     def write_and_read
-      @redis.write @commands.join
+      @redis.execute_command(@commands.join, true)
       @redis.read_socket
       @commands.clear
     end
     
   end
-end
\ No newline at end of file
+end