pub async fn session(
__arg0: State<(&'static RedisCache, Arc<SessionParams>)>,
req: Request,
next: Next,
) -> Result<Response, Error>Expand description
axum 中间件:在请求扩展中注入空 Session 实例,供后续 handler 通过 extractor 按需加载。
Session 数据不在此处预加载,而是在 FromRequestParts 实现中按需从 Redis 读取。