code: public function writeSession($id, $data)
      {
          return (bool) $this->redis->executeCommand('SET', [$this->calculateKey($id), $data, 'EX', $this->getTimeout()]);
      }
docs: Session write handler.
  Do not call this method directly.
  @param string $id session ID
  @param string $data session data
  @return bool whether session write is successful