Skip to content

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

client

The Redis client to use for the operation.

key

The 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.