couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qaqabincs <luji...@gmail.com>
Subject use cradle to delete db but cache didn't reset
Date Sat, 15 Jun 2013 14:54:20 GMT
I use node 0.8.18, express3.2.5, cradle0.6.6. my problem is : after I
saved a doc into db, then I delete db to reset my testcase env, but when
I save the doc with the same id, cradle told me that doc is exsited!
source code as follow:

|db.save(id, acct, callback0);
//in the callback0 ...
db.destroy(callback1);
//in the callback1 ...
db.create(callback2);
//in the callback2 ... 
db.get(id, callback);|

then I got the same acct document, it seems still in the cradle cache.

can I clean the cache the same time I delete the db ?



qaqabincs


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message