Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
protocol KeyValueStoring {
/// Fetches a movie based on its key
func getValue<Value>(for key: String, completion: @escaping (Result<Value?, KeyValueStoreError>) -> Void)
/// Insert or update a movie
func set<Value>(value: Value, for key: String)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment