package com.liquidnet.service.galaxy.utils;

import com.liquidnet.common.cache.redis.util.RedisDataSourceUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @author AnJiabin <anjiabin@zhengzai.tv>
 * @version V1.0
 * @Description: TODO
 * @class: QueueUtil
 * @Package com.liquidnet.service.galaxy.utils
 * @Copyright: LightNet @ Copyright (c) 2022
 * @date 2022/3/25 15:35
 */
@Component
public class QueueUtil extends AbstractQueueUtil{
    @Autowired
    private RedisDataSourceUtil redisDataSourceUtil;

    @Override
    StringRedisTemplate getStringRedisTemplate() {
        return redisDataSourceUtil.getRedisQueueUtil().getStringRedisTemplate();
    }
}
