package org.lingniu.sdk.constant;

/**
 * 缓存的key 常量
 * 
 * @author portal
 */
public class CacheConstants
{
    // Access Token存储: String结构
    // 格式: access_token:{token}
    public static final String ACCESS_TOKEN_KEY = "app_access_token:%s";
    public static final String ACCESS_TOKEN_USER_KEY = "app_access_token_user:%s";

    // Refresh Token存储: Hash结构
    // 格式: refresh_token:{token}
    public static final String REFRESH_TOKEN_KEY = "app_refresh_token:%s";

    // 用户会话管理
    public static final String USER_SESSIONS = "app_user_sessions:%s"; // userId -> session列表

    public static final String OAUTH2_CLIENT_KEY_PREFIX = "oauth2:client:";

}
