Created
March 7, 2018 05:53
-
-
Save RoshanNindrai/4637b673ac5c6415052626334cc5f8d4 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
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