saoudrizwan / Disk

Easily persist structs, images, and data on iOS
MIT License
3.1k stars 170 forks source link

Unique objects #20

Closed nnascim closed 6 years ago

nnascim commented 6 years ago

Avoid duplicating Equatable or Hashable objects. Replace existing object instead.

saoudrizwan commented 6 years ago

In a lot of cases, people are saving multiple duplicate objects in one JSON file. Automatically replacing existing objects is out of Disk's scope.

kylebrowning commented 5 years ago

I'd argue this would be a fine addition.