Method: RedisClient::RESP3.dump
- Defined in:
- lib/redis_client/ruby_connection/resp3.rb
.dump(command, buffer = nil) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/redis_client/ruby_connection/resp3.rb', line 36 def dump(command, buffer = nil) buffer ||= new_buffer command = command.flat_map do |element| case element when Hash element.flatten else element end end dump_array(command, buffer) end |