code: @Override
      public DataType type(byte[] key) {
          try {
              if (isPipelined()) {
                  pipeline(new JedisResult(pipeline.type(key), JedisConverters.stringToDataType()));
                  return null;
              }
  
              return JedisConverters.toDataType(client.type(key));
          } catch (Exception ex) {
              throw convertException(ex);
          }
      }
docs: /*
  @see org.springframework.data.redis.connection.RedisKeyCommands#type(byte[])