Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trupin/643f034bea0edeba9d29f5ab2b5dc142 to your computer and use it in GitHub Desktop.
Save trupin/643f034bea0edeba9d29f5ab2b5dc142 to your computer and use it in GitHub Desktop.
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