You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
moved tests for specific commands into the /commands sub-folder, put a ton of tests around the multi command
This commit is contained in:
@@ -56,5 +56,15 @@ module.exports = {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
serverVersionAtLeast: function (connection, desired_version) {
|
||||
// Return true if the server version >= desired_version
|
||||
var version = connection.server_info.versions;
|
||||
for (var i = 0; i < 3; i++) {
|
||||
if (version[i] > desired_version[i]) return true;
|
||||
if (version[i] < desired_version[i]) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user