@Override
    public void close() throws IOException {
        if (jedisSentinelPool != null) {
            jedisSentinelPool.close();
        }
        if (pool != null) {
            pool.close();
        }
        if (jedis != null) {
            if (jedis instanceof Closeable) {
                ((Closeable) jedis).close();
            }
        }

    }
1. build key from map.
 2. save key and value.
 3. set expired time for key when keyExpiredTime has been set.
@param refData
redis5/redis5-sink/src/main/java/com/dtstack/flink/sql/sink/redis/RedisOutputFormat.java