Redis Documentation

Extensions on Request

Properties

redis

public var redis: Redis  

The default Redis connection.

If different Redis configurations are in use, use the redis(_:) method to match by RedisID instead.

Methods

redis(_:​)

public func redis(_ id: RedisID) -> Redis  

Returns the Redis connection for the given ID.

Parameters

id Redis​ID

The Redis ID that identifies the specific connection to be used.

Returns

A Redis connection that is identified by the given id.