Skip to content

Instance Method

redis(_:store:with:)

Instructs your delegate object to handle the responsibility of storing the provided session data to Redis.
func redis<Client>(_ client: Client, store data: SessionData, with key: RedisKey) -> EventLoopFuture<Void> where Client : RedisClient

Parameters

client

The Redis client to use for the operation.

data

The session data to store in Redis.

key

The Redis key to identify the data being stored.

Return Value

A notification NIO.EventLoopFuture that resolves when the operation has completed.