Created
April 25, 2018 01:07
-
-
Save trupin/643f034bea0edeba9d29f5ab2b5dc142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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