package me.chyxion.tigon.redis.util;

/**
 * @author Shaun Chyxion <br>
 * chyxion@163.com <br>
 * Dec 24, 2017 10:54 AM
 */
public class PubSubUtils {
    public static final String QUEUE_PREFIX = "__TIGON_REDIS_PUB__";
    public static final String MESSAGE_CHANEL = "__TIGON_REDIS_PUB__";

    /**
     * return topic queue
     * @param topic topic
     * @return topic queue
     */
    public static String queueKey(final String topic) {
        return QUEUE_PREFIX + ":" + topic;
    }
}
