You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Simply and speed up command argument processing logic. Commands now return the true/false value from the underlying socket write(s). Implement command_queue high water and low water for more better control of queueing.
13 lines
201 B
JavaScript
13 lines
201 B
JavaScript
function to_array(args) {
|
|
var len = args.length,
|
|
arr = new Array(len), i;
|
|
|
|
for (i = 0; i < len; i += 1) {
|
|
arr[i] = args[i];
|
|
}
|
|
|
|
return arr;
|
|
}
|
|
|
|
module.exports = to_array;
|