Skip to content

Commit

Permalink
Space-delimited commands support. Such as 'DEBUG OBJECT'
Browse files Browse the repository at this point in the history
  • Loading branch information
hellmany committed Apr 16, 2014
1 parent 1d27a36 commit 5ebd10e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Redis/Client/Role/URP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ sub send_command {
my ( $cmd, @args ) = @_;

my $sock = $self->_sock;
my $cmd_block = $self->_build_urp( $cmd, @args );
my @cmd = ();
($cmd =~ /\s/) ? (@cmd = split(/\s/, $cmd)) : (@cmd = ($cmd));
my $cmd_block = $self->_build_urp( @cmd, @args );

$sock->send( $cmd_block );

Expand Down

0 comments on commit 5ebd10e

Please sign in to comment.