Skip to content

refactor(session): RedisSessionHandler 直接依赖 \Redis - #44

Merged
JanHuang merged 1 commit into
masterfrom
refactor/redis-session-api-20261027
Oct 27, 2026
Merged

JanHuang merged 1 commit into
masterfrom
refactor/redis-session-api-20261027

Conversation

@JanHuang

Copy link
Copy Markdown
Member

变更

按评审意见简化 Redis Session API:

  • 删除 RedisClientInterface
  • 删除 PhpRedisSessionClient
  • RedisSessionHandler 构造器直接要求 \Redis
  • 仅保留外部抽象 SessionHandlerInterface / SessionGcInterface
  • 测试改为直接 mock \Redis
  • HTTP CI 增加 redis 扩展

验证

  • RedisSessionHandlerTest:7 tests / 19 assertions ✅
  • PHPStan:No errors ✅

- 删除 RedisClientInterface 与 PhpRedisSessionClient 内部抽象
- 构造器强制 \Redis 对象
- 更新测试为 \Redis mock 并清理 notice
- CI 增加 redis 扩展
@JanHuang
JanHuang merged commit c181879 into master Oct 27, 2026
2 checks passed
@JanHuang
JanHuang deleted the refactor/redis-session-api-20261027 branch October 27, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant