rcc-ioredis-adapter.js
function isMovedError(error) {
  // Check if error message contains something like: "MOVED 14190 127.0.0.1:6379"
  return !!isInstanceOf(error, ReplyError) && error.message && error.message.startsWith('MOVED ');
}
function isMovedError(error) {
  // Check if error message contains something like: "MOVED 14190 127.0.0.1:6379"
  return !!isInstanceOf(error, ReplyError) && error.message && error.message.startsWith('MOVED ');
}
function isMovedError ( error ) { // Check if error message contains something like: "MOVED 14190 127.0.0.1:6379" return ! ! isInstanceOf ( error , ReplyError ) && error . message && error . message . startsWith ( 'MOVED ' ) ; }
Returns true if the given error indicates that the key attempted was moved to a new host and port; otherwise returns
false.
@param {Error|ReplyError} error - an error thrown by a RedisClient instance
@return {boolean} true if moved; false otherwise
Returns true if the given error indicates that the key attempted was moved to a new host and port ; otherwise returns false .