Redis Documentation

Extensions on Application.Caches.Provider

Properties

redis

public static var redis: Self  

Configures the application cache to use the default Redis ID and coders.

Methods

redis(_:​)

public static func redis(_ id: RedisID) -> Self  

Configures the application cache to use the given Redis ID and the default coders.

redis(_:​encoder:​decoder:​)

public static func redis<E: RedisCacheEncoder, D: RedisCacheDecoder>(_ id: RedisID  = .default, encoder: E, decoder: D) -> Self  

Configures the application cache to use the given Redis ID and the provided encoder and decoder.