You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
JavaScript parser passes all tests when returning strings.
JS is still way too slow for large mb replies. Hiredis is fast for strings of large replies, but slow for buffers.
This commit is contained in:
4
test.js
4
test.js
@@ -14,7 +14,7 @@ var redis = require("./index"),
|
||||
server_info;
|
||||
|
||||
// Uncomment this to see the wire protocol and other debugging info
|
||||
redis.debug_mode = true;
|
||||
redis.debug_mode = false;
|
||||
|
||||
function buffers_to_strings(arr) {
|
||||
return arr.map(function (val) {
|
||||
@@ -513,7 +513,7 @@ tests.UTF8 = function () {
|
||||
client.set(["utf8test", utf8_sample], require_string("OK", name));
|
||||
client.get(["utf8test"], function (err, obj) {
|
||||
assert.strictEqual(null, err);
|
||||
assert.strictEqual(utf8_sample, obj.toString('utf8'));
|
||||
assert.strictEqual(utf8_sample, obj);
|
||||
next(name);
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user