Skip to content

Instantly share code, notes, and snippets.

@ricardopsantos
Created January 14, 2023 16:31
Show Gist options
  • Save ricardopsantos/56a73031f997191ff5f66702e7d5cb45 to your computer and use it in GitHub Desktop.
Save ricardopsantos/56a73031f997191ff5f66702e7d5cb45 to your computer and use it in GitHub Desktop.
Article_13_G5.swift
public protocol CodableCacheManagerProtocol {
func syncStore<T: Codable>(_ codable: T, key: String, params: [String], timeToLiveMinutes: Int?)
func syncRetrieve<T: Codable>(_ type: T.Type, key: String, params: [String]) -> (model: T, recordDate: Date)?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment