Skip to content

Instantly share code, notes, and snippets.

@emenegro
Last active March 21, 2017 21:04
Show Gist options
  • Save emenegro/f1cff220030934243bd206bc408840d2 to your computer and use it in GitHub Desktop.
Save emenegro/f1cff220030934243bd206bc408840d2 to your computer and use it in GitHub Desktop.
protocol OfflineController {
func cache(request: OfflineRequestConvertible, forId id: String?, encryptionKey: String?, data: Data, keepAliveUntil keepAlive: Date?, completion: @escaping OfflineControllerCompletionHandler)
func get(request: OfflineRequestConvertible, forId id: String?, encryptionKey: String?, ifBefore before: Date?, completion: @escaping OfflineControllerCompletionHandler)
func delete(request: OfflineRequestConvertible, forId id: String?, encryptionKey: String?, completion: @escaping OfflineControllerCompletionHandler)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment