1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Copyright (c) 2026 Kirky.X. All rights reserved. //! See LICENSE for full license text. //! session 模块辅助函数(从 mod.rs 迁移,Rule 25 合规)。 use super::*; /// 生成 Account-Session 的存储 key。 pub(crate) fn account_key(login_id: &str) -> String { format!("account:session:{}", login_id) } /// 生成 Token-Session 的存储 key。 pub(crate) fn token_key(token: &str) -> String { format!("{}session:{}", DaoKeyPrefix::Token, token) }