3rd-Eden / memcached

A fully featured Memcached client build on top of Node.js. Build with scaling in mind so it will support Memcached clusters and consistent hashing.
MIT License
1.31k stars 276 forks source link

getMulti with empty array #336

Open noam-arad opened 5 years ago

noam-arad commented 5 years ago

When using getMulti on an empty array of keys callback is not fired. I would expect the callback to be fired either with an error or probably with an empty array as the data. Here is test code

const memcached = require('memcached');
const memcacheClient = new memcached('memcache-server:11211');
memcacheClient.getMulti([], (err, data) => {
        console.log('received err [' + JSON.stringify(err) + '] data [' + JSON.stringify(data) + ']');
        });

Expected: to see something printed to console. Actual: nothing is printed to console.

gabmontes commented 1 year ago

This is a dup of #169.