code: public static MemcachedClient create(final PippoSettings settings) {
          String host = settings.getString(HOST, "localhost:11211");
          String prot = settings.getString(PROT, "BINARY");
          CommandFactory protocol;
          switch (prot) {
              case "BINARY":
                  protocol = new BinaryCommandFactory();
                  break;
              case "TEXT":
                  protocol = new TextCommandFactory();
                  break;
              default:
                  protocol = new BinaryCommandFactory();
                  break;
          }
          String user = settings.getString(USER, "");
          String pass = settings.getString(PASS, "");
          List<String> autM = settings.getStrings(AUTM);
          String[] mechanisms = autM.toArray(new String[autM.size()]);
          return create(host, protocol, user, pass, mechanisms);
      }
docs: Create a memcached client with pippo settings.
  
  @param settings pippo settings
  @return memcached client