Skip to content

Instance Method

makeRedisKey(for:)

Makes a key to identify the given session ID in Redis.
func makeRedisKey(for sessionID: SessionID) -> RedisKey

Parameters

sessionID

The session ID that needs to be transformed into a RediStack.RedisKey for storage in Redis.

Return Value

A Redis key for the given sessionID to be used to identify associated SessionData in Redis.

Discussion

Note

This method is optional to implement.

The default implementation prefixes the sessionID with vrs-.

Default Implementations

RedisSessionsDelegate Implementations