PHPRedis has a configuration option OPT_REPLY_LITERAL that controls whether Redis "+OK" responses are returned as:
- String "OK" (when OPT_REPLY_LITERAL is enabled)
- Boolean true (when OPT_REPLY_LITERAL is disabled - the default)
This is set at runtime:
$redis->setOption(Redis::OPT_REPLY_LITERAL, false);
PHPRedis has a configuration option OPT_REPLY_LITERAL that controls whether Redis "+OK" responses are returned as:
This is set at runtime:
$redis->setOption(Redis::OPT_REPLY_LITERAL, false);