Skip to content

4.0.0

Compare
Choose a tag to compare
@plivesey plivesey released this 24 Oct 22:51
· 40 commits to master since this release

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.