// // CachedRelays.swift // CachedRelays // // Created by pronebird on 27/07/2021. // Copyright © 2025 Mullvad VPN AB. All rights reserved. // import Foundation /// A struct that represents the relay cache in memory public struct CachedRelays: Codable, Equatable { /// E-tag returned by server public let etag: String? /// The relay list stored within the cache entry public let relays: REST.ServerRelaysResponse /// The date when this cache was last updated public let updatedAt: Date public init(etag: String? = nil, relays: REST.ServerRelaysResponse, updatedAt: Date) { self.etag = etag self.relays = relays self.updatedAt = updatedAt } }