FrigadeHQ / remote-storage

remoteStorage is a simple library that combines the localStorage API with a remote server to persist data across sessions, devices, and browsers. It works as a simple key value database store and backend with support for React, Next.js, Vue, Node, or any Javascript stack
https://remote.storage
MIT License
1.21k stars 27 forks source link

Conflit resolution #24

Open abakermi opened 7 months ago

abakermi commented 7 months ago

introduces conflict resolution mechanisms in both Redis and SQLite services. It adds timestamp-based conflict detection and resolution in RedisService, ensuring data integrity during concurrent updates. Similarly, for SqliteService, the code now includes handling for conflicts using timestamps

christianmat commented 7 months ago

Over-all looks good. Please add some unit tests as well. You can see how to set that up with Nest.js here: https://docs.nestjs.com/fundamentals/testing