]> git.saurik.com Git - redis.git/blobdiff - client-libraries/ruby/lib/pipeline.rb
max inline request raised again to 1024*1024*256 bytes
[redis.git] / client-libraries / ruby / lib / pipeline.rb
index deaedd159547e67318cfb501ab10fadf48061703..acab5acc5c7e2c434424cfed314e21e055d21a42 100644 (file)
@@ -8,24 +8,15 @@ class Redis
       @redis = redis
       @commands = []
     end
-    
-    def get_response
-    end
-    
-    def write(data)
-      @commands << data
-      write_and_read if @commands.size >= BUFFER_SIZE
+   
+    def call_command(command)
+      @commands << command
     end
-    
-    def finish
-      write_and_read
-    end
-    
-    def write_and_read
-      @redis.write @commands.join
-      @redis.read_socket
+
+    def execute
+      @redis.call_command(@commands)
       @commands.clear
     end
     
   end
-end
\ No newline at end of file
+end