On this page本页内容
Mongo.
isCausalConsistency
New in version 3.6.版本3.6中的新功能。
Returns a boolean that indicates whether causal consistency is enabled on the connection object.
var conn = Mongo("localhost:27017"); conn.isCausalConsistency()
The following mongo shell operation determines if causal consistency is enabled on the Mongo connection object associated with the mongo shell’s global db variable:
mongo
Mongo
db
db.getMongo().isCausalConsistency();
See also参阅
db.getMongo()
Mongo.setCausalConsistency()