Redis Documentation

Protocol Redis​Cache​Encoder

public protocol RedisCacheEncoder  

An encoder whose output is convertible to a RESPValue for storage in Redis. Directly based on Combine.TopLevelEncoder but can't extend it because Combine isn't available on Linux.

Requirements

Output

associatedtype Output: RESPValueConvertible

encode(_:​)

func encode<T>(_ value: T) throws -> Self.Output where T: Encodable