Created
March 7, 2018 05:39
-
-
Save RoshanNindrai/cbc5a8dbd228cda71dc45947c1167bd0 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
public protocol ComposableCache { | |
associatedtype Key | |
associatedtype Value | |
var getC: (Key) -> Value? { get set } | |
var setC: (Key, Value) -> Void { get set } | |
init(getC: @escaping (Key) -> Value?, setC: @escaping ((Key, Value) -> Void)) | |
func get(_ key: Key) -> Value? | |
func set(_ key: Key, _ value: Value) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
__940493403