Is it possible to get a all document, verssions (cas)


#1

Can i get all documents version ,
or an older document version by specifying a cas ?
somthing like

cb.get('docID', { CAS: 'somecasID'});

Thanks


#2

Hi @doronaviguy,

Couchbase does not store multiple versions of your document, the CAS value is used for optimistic and cooperative concurrency controls.
If you want to store multiple documents (so to speak revisions), you need to handle that on your own. Depending on your requirements you can put multiple versions in one document or store one document per each version.


#3

alright , thanks alot .