Skip to content

Instantly share code, notes, and snippets.

@RoshanNindrai
Created March 7, 2018 05:53
Show Gist options
  • Save RoshanNindrai/4637b673ac5c6415052626334cc5f8d4 to your computer and use it in GitHub Desktop.
Save RoshanNindrai/4637b673ac5c6415052626334cc5f8d4 to your computer and use it in GitHub Desktop.
struct MemoryComposableCache<K, V>: ComposableCache {
var getC: (K) -> V?
var setC: (K, V) -> Void
typealias Key = K
typealias Value = V
}
struct DiscComposableCache<K, V>: ComposableCache {
var getC: (K) -> V?
var setC: (K, V) -> Void
typealias Key = K
typealias Value = V
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment