package tech.easyflow.common.mq.config;

import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
import org.springframework.data.redis.core.StringRedisTemplate;

public record MQRedisResources(LettuceConnectionFactory connectionFactory,
                               StringRedisTemplate stringRedisTemplate) implements AutoCloseable {

    @Override
    public void close() {
        connectionFactory.destroy();
    }
}
