Jake-Moore / SyncEngine

A data storage and synchronization library for Spigot plugins.
MIT License
1 stars 0 forks source link

Deletion Safety #4

Closed Jake-Moore closed 3 months ago

Jake-Moore commented 3 months ago

Logic

  1. Create an item
  2. Modify some data
  3. Save the item
  4. Modify some data
  5. Delete the item
  6. Save the item

The second save should not be saved (debug level logging if save called), the file should remain deleted We should not load from db either, that object is considered dead

A new object can be created with the same id, and completely overwrite any cached value (should it remain)