iOS, Swift, Swiftui, Mobile, Mobile App Development.
Service Input to be Hashable and the Output to be Codable, we can implement it for all our services. private(set) var cache: [AnyHashable: Data] = [:] class CachingService<Decoratee: Service>: Service where Decoratee.Output: Codable, Decoratee.Input: Hashable { typealias Input = Decoratee.Input