Skip to content

Instantly share code, notes, and snippets.

@RinniSwift
Last active January 20, 2021 02:54
Show Gist options
  • Save RinniSwift/69fe6b69354a06f4881f21d0592260aa to your computer and use it in GitHub Desktop.
Save RinniSwift/69fe6b69354a06f4881f21d0592260aa to your computer and use it in GitHub Desktop.
struct CachePayload<T: Hashable, U>: Payload {
var key: T
var value: U
init(key: Key, value: Value) {
self.key = key
self.value = value
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment