WEB:A: Match same "thread" safe method of mutable to / from immutable like CBL.
B. Write to local cache
-- look at SG to see how it calculates the _rev hash and match it to prevent collision in the future.
-- ttl element(timestamp) add to local cache
C.HTTP PUT to remote SG host.
Docs: https://docs.couchbase.com/sync-gateway/current/rest-api.html#/Document/put_keyspace_docid
-- PUT TTL/_exp
WEB TEST: if remote SG has different branch(i.e. new revision from another source) how to handle failure and/or tell user.
WEB: A: Match same "thread" safe method of mutable to / from immutable like CBL. B. Write to local cache -- look at SG to see how it calculates the _rev hash and match it to prevent collision in the future. -- ttl element(timestamp) add to local cache C.HTTP PUT to remote SG host. Docs: https://docs.couchbase.com/sync-gateway/current/rest-api.html#/Document/put_keyspace_docid
-- PUT TTL/_exp
WEB TEST: if remote SG has different branch(i.e. new revision from another source) how to handle failure and/or tell user.
MOBILE: https://docs.couchbase.com/couchbase-lite/current/c/document.html#save-a-document