import Foundation enum CacheError: Error { case codingError(Error) } protocol Cache: KeyValueStorage {} struct EncodableWrapper: Encodable { let v: T } struct DecodableWrapper: Decodable { let v: T }