Protocolvapor 4.114.1Vapor
AsyncSessionDriver
Capable of managing CRUD operations for Session
s.
protocol AsyncSessionDriver : SessionDriver
Browse conforming typesThis is an async version of SessionDriver
Capable of managing CRUD operations for Session
s.
protocol AsyncSessionDriver : SessionDriver
This is an async version of SessionDriver
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol SessionDriver : Sendable
Capable of managing CRUD operations for Session
s.
protocol Sendable
func createSession(_ data: SessionData, for request: Request) async throws -> SessionID
func deleteSession(_ sessionID: SessionID, for request: Request) async throws
func readSession(_ sessionID: SessionID, for request: Request) async throws -> SessionData?
func updateSession(_ sessionID: SessionID, to data: SessionData, for request: Request) async throws -> SessionID
func createSession(_ data: SessionData, for request: Request) -> EventLoopFuture<SessionID>
func deleteSession(_ sessionID: SessionID, for request: Request) -> EventLoopFuture<Void>
func readSession(_ sessionID: SessionID, for request: Request) -> EventLoopFuture<SessionData?>
func updateSession(_ sessionID: SessionID, to data: SessionData, for request: Request) -> EventLoopFuture<SessionID>