Creates a new session repository instance.
The validator instance.
The config instance.
The logger instance.
The connector instance.
Authorizes the session by its ID.
If the session proxy is disabled, re-assigns it to a random enabled proxy.
The ID of the campaign containing the session.
The session ID to authorize.
The authorized session model.
DatabaseError If the campaign does not exist.
DatabaseError If the session does not exist.
DatabaseError If no enabled proxies are available.
DatabaseError If the data validation fails.
Creates a new session.
The session is automatically assigned to a random enabled proxy.
The ID of the campaign to create the session in.
The newly created session model.
DatabaseError If the campaign does not exist.
DatabaseError If no enabled proxies are available.
DatabaseError If the data validation fails.
Reads the session by its ID.
The ID of the campaign containing the session.
The session ID to read.
The session model, or null if the session is not found.
DatabaseError If the data validation fails.
Upgrades the session by its ID and secret.
The ID of the campaign containing the session.
The Lure ID through which the session is upgraded.
The session ID to upgrade.
The session secret.
DatabaseError If the campaign does not exist.
DatabaseError If the lure does not exist.
DatabaseError If the session does not exist.
DatabaseError If the secret does not match.
DatabaseError If the data validation fails.
StaticregisterRegisters the session repository as a singleton in the DI container.
The DI container to register in.
Redis-based session repository implementation.
Depends:
Example