Redis Documentation

Structure Application.​Redis.​Sessions

public struct Sessions  

Member Of

Application.Redis

Methods

make​Driver(delegate:​)

@inlinable
        public func makeDriver<Delegate: RedisSessionsDelegate>(delegate: Delegate) -> some SessionDriver  

Factory method that creates a new Redis Sessions driver with the provided delegate.

See RedisSessionsDelegate.

Parameters

delegate Delegate

The delegate object to use instead of the default.

make​Driver()

public func makeDriver() -> some SessionDriver  

Factory method that creates a new Redis Session driver with the default delegate.

See RedisSessionsDelegate.