Redis Documentation

Extensions on Application.Caches

Properties

redis

public var redis: Cache  

A cache configured for the default Redis ID and the default coders.

Methods

redis(_:​)

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

A cache configured for a given Redis ID and the default coders.

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

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

A cache configured for a given Redis ID and using the provided encoder and decoder.