rcc-redis-mock-adapter.js
function createClient(redisClientOptions) {
  const client = redis.createClient(redisClientOptions);
  if (!client._options) {
    client._options = redisClientOptions;
  }
  return client;
}
function createClient(redisClientOptions) {
  const client = redis.createClient(redisClientOptions);
  if (!client._options) {
    client._options = redisClientOptions;
  }
  return client;
}
function createClient ( redisClientOptions ) { const client = redis . createClient ( redisClientOptions ) ; if ( ! client . _options ) { client . _options = redisClientOptions ; } return client ; }
Creates a new RedisClient instance.
@param {RedisClientOptions|undefined} [redisClientOptions] - the options to use to construct the new RedisClient
instance
@return {RedisClient} returns the new RedisClient instance
Creates a new RedisClient instance .