mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
client libraries synched in git
This commit is contained in:
@ -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
|
||||
end
|
||||
|
Reference in New Issue
Block a user