code: public void reset() {
          if (nonNull(client)) {
              synchronized (mutex) {
                  if (nonNull(client)) { // double-guard
                      client.shutdown();
                      client = null;
                  }
              }
          }
      }
docs: Shut down the Redis client.