Deletes a session by its ID.
Returns all active sessions whose constructor matches the given one.
This includes sessions of subclasses. Useful for querying sessions of a specific type without iterating the entire repository.
Returns the remaining TTL of the given session.
Checks whether a session is present.
Returns an iterator of all session IDs.
Called when the bot is started.
Called when the bot is stopped.
OptionalreturnSets a new TTL for the given item.
That is, making the item expire on passed ttl + now.
Optionalthrow
An object for temporal storage of Session instances.