package com.ruoyi.web.modules.openstats.support;

/**
 * Redis 缓存 Key 规范
 */
public final class StatsCacheKeys
{
    private static final String PREFIX = "openstats:";

    private StatsCacheKeys()
    {
    }

    public static String categorySales(String statDate)
    {
        return PREFIX + "cat:sales:" + statDate;
    }

    public static String hotCategory(String statDate)
    {
        return PREFIX + "cat:hot:" + statDate;
    }

    public static String orderTrend(int statYear)
    {
        return PREFIX + "order:month:" + statYear;
    }

    public static String shopEntry(int statYear)
    {
        return PREFIX + "shop:month:" + statYear;
    }

    public static String regionRank(int statYear)
    {
        return PREFIX + "region:" + statYear;
    }

    public static String wordCloud()
    {
        return PREFIX + "wordcloud";
    }
}
