replicadocuments across your cluster out-of-the-box. Documents are stored both in RAM for fast access and persisted to disk for long term storage. By default, all storage operations are
synchronous, and will return once the document has been written to memory. Which means the
upsert()call returns potentially before the document is fully stored and replicated. This is a break from the consistency offered by a typical RDBMS, but it is key to the high-performance and scalable architecture. See the CAP Theorem.
Hint All documents will eventually replicate and persist by themselves. You only need these options if the application cannot continue without it.
upsertMulti()- Set multiple documents in the cache with a single operation.
replace()- Replace an existing document.
insert()- Insert a new document
replaceWithCAS()- Update a document only if no one else has changed it since you last retreived it using Compare And Swap (CAS).
touch()- Touch a document to reset its expiration time.
unlock()- Unlock a previously locked document without modifying the document.
counter()- Increment or Decrement a numeric value
append()- add content to the beginning or end of an existing document