xp-forge / redis-sessions
Redis Sessions
v2.1.0
2024-03-24 13:22 UTC
Requires
- php: >=7.0.0
- xp-forge/redis: ^1.0
- xp-forge/sessions: ^3.0 | ^2.0 | ^1.0
- xp-forge/uri: ^2.0 | ^1.0
- xp-framework/core: ^12.0 | ^11.0 | ^10.0
- xp-framework/networking: ^10.0 | ^9.0 | ^8.0
Requires (Dev)
- xp-framework/test: ^2.0 | ^1.0
README
Redis-based sessions implementation.
Example
use web\session\{Sessions, InRedis}; $inject->bind(Sessions::class, new InRedis('redis://localhost'));
To use authentication, pass it as username in the connection string, e.g. redis://secret@localhost.