p5-RedisDB / RedisDB

Perl extension to access Redis
22 stars 11 forks source link

Fixed handling command including white space. (eg: CONFIG GET) #6

Closed hirose31 closed 12 years ago

hirose31 commented 12 years ago

RedisDB#config_get cause error.

$redis->config_get('maxmemory'); => ERR unknown command 'CONFIG GET'

RedisDB 1.03 send following data to redis-server:

*2
$10
CONFIG GET
$9
maxmemory

But redis-server expected is:

*3
$6
CONFIG
$3
GET
$9
maxmemory
trinitum commented 12 years ago

Thank you very much! I modified your fix a bit, and uploaded 1.04 to CPAN.