title: Redis error "ReplyError: ERR value is not an integer or out of range"
body: <p>i am trying to store sessions in Redis but giving me an error.
  i am using nodejs and express.</p>
  <p><code>ReplyError: ERR value is not an integer or out of range</code></p>
  <pre><code>import express from 'express';
  import redis from 'redis';
  import redisConnect from 'connect-redis';
  import session from 'express-session';
  
  const app = express();
  const redisStore = redisConnect(session);
  const redisClient = redis.createClient();
  
  app.use(
      session({
          store: new redisStore({
              host: '127.0.0.1',
              port: 6379,
              client: redisClient,
              ttl: 36000,
          }),
          secret: &quot;ljsaflasjdsffafa&quot;,
          resave: false,
          saveUninitialized: false,
          name: 'user',
          cookie: {
              path: '/',
              httpOnly: true,
              maxAge: 36000,
              secure: false,
          },
      }),
  );
  
  app.listen(3000)
  
  </code></pre>
  <p>it's happening when I try to save session</p>