title: How to register RedisModule in Nest.js?
body: <p>I've followed the instruction from <a href="https://www.npmjs.com/package/nestjs-redis" rel="nofollow noreferrer">nestjs-redis documentation</a> to register RedisModule but it gives me the following error message. I am new to Nest.js and have no idea how to fix this error.
  If you know the better way to use Redis with nestjs, please suggest me.</p>
  <blockquote>
  <p>Nest can't resolve dependencies of the RedisCoreModule
  (Symbol(REDIS_MODULE_OPTIONS), ?). Please make sure that the argument
  ModuleRef at index [1] is available in the RedisCoreModule context.</p>
  <p>Potential solutions:</p>
  <ul>
  <li>If ModuleRef is a provider, is it part of the current RedisCoreModule?</li>
  <li>If ModuleRef is exported from a separate @Module, is that module imported within RedisCoreModule?   @Module({
  imports: [ /* the Module containing ModuleRef */ ]   })</li>
  </ul>
  </blockquote>
  <p>my app.module</p>
  <pre><code>@Module({
    imports: [
      RedisModule.register({
        host: `${host}`,
        port: 6379,
      }),
    ],
  })
  export class AppModule {}
  </code></pre>