Class
EndpointCache
Handles the complexities of HTTP caching.
final class EndpointCache<T> where T : Decodable, T : Sendable
Topics
Initializers
init(uri: URI)The designated initializer.
Instance Methods
func get(on: Request, logger: Logger?) -> EventLoopFuture<T>Downloads the resource.func get(using: any Client, logger: Logger?, on: any EventLoop) -> EventLoopFuture<T>Downloads the resource.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype