code: public static DBManager getInstance() {
          if (dbManager == null) {
              synchronized (lock){
                  if(dbManager == null){
                      dbManager = new RedisDBManager();
                  }
              }
          }
          return dbManager;
      }
docs: 并发安全的