diff options
Diffstat (limited to 'ios/RelayCache/RelayCache.swift')
| -rw-r--r-- | ios/RelayCache/RelayCache.swift | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ios/RelayCache/RelayCache.swift b/ios/RelayCache/RelayCache.swift index abce823786..ba7ed31cf1 100644 --- a/ios/RelayCache/RelayCache.swift +++ b/ios/RelayCache/RelayCache.swift @@ -10,7 +10,12 @@ import Foundation import MullvadREST import MullvadTypes -public final class RelayCache { +public protocol RelayCacheProtocol { + func read() throws -> CachedRelays + func write(record: CachedRelays) throws +} + +public final class RelayCache: RelayCacheProtocol { private let fileCache: any FileCacheProtocol<CachedRelays> /// Designated initializer |
