Instance Method
redis(_:fetchDataFor:)
Asks the delegate object to fetch session data for a given Redis key.
func redis<Client>(_ client: Client, fetchDataFor key: RedisKey) -> EventLoopFuture<SessionData?> where Client : RedisClient
Parameters
clientThe Redis client to use for the operation.
keyThe Redis key that identifies the data to be fetched.
Return Value
A NIO.EventLoopFuture that possibly resolves the available session data for the given Redis key.