package cn.meowrain.aioj.backend.question.common.constants;

/**
 * 题目服务 Redis Key 常量
 */
public class RedisKeyConstants {

    /**
     * 题目缓存 Key 前缀
     */
    public static final String QUESTION_CACHE_KEY_PREFIX = "question:";

    /**
     * 题目详情缓存 Key
     */
    public static final String QUESTION_DETAIL_KEY = QUESTION_CACHE_KEY_PREFIX + "detail:";

    /**
     * 题目列表缓存 Key
     */
    public static final String QUESTION_LIST_KEY = QUESTION_CACHE_KEY_PREFIX + "list";

    /**
     * 测试用例缓存 Key 前缀
     */
    public static final String TEST_CASE_CACHE_KEY_PREFIX = "test_case:";

    /**
     * 题目提交缓存 Key 前缀
     */
    public static final String QUESTION_SUBMIT_CACHE_KEY_PREFIX = "question_submit:";

    private RedisKeyConstants() {
    }
}
