Skip to content

Strategies

Pre-release
Pre-release
Compare
Choose a tag to compare
@mattcomi mattcomi released this 12 Apr 02:16
· 43 commits to master since this release

Added the ability to specify how a PersistentObject is persisted.

Before:

let obj = PersistentObject<Person>(key: "personKey")

After:

let obj = PersistentObject<Person>(strategy: UserDefaultsStrategy(key: "personKey"))