4.0.0
A minor change to the CacheDelegate
protocol which helps make the DataModelManager
API more flexible.
To upgrade you should replace these methods in your CacheDelegate
.
Previous:
func setModel<T: SimpleModel>(_ model: T, forKey cacheKey: String, context: Any?)
func setCollection<T: SimpleModel>(_ collection: [T], forKey cacheKey: String, context: Any?)
Now:
func setModel(_ model: SimpleModel, forKey cacheKey: String, context: Any?)
func setCollection(_ collection: [SimpleModel], forKey cacheKey: String, context: Any?)
As far as we can tell, there isn't any need for the generic parameter here. If you have any problems, please create an issue.