Exceptions
在线手册:中文  英文

The MongoCursorTimeoutException class

(PECL mongo >= 1.0.0)

简介

Caused by a query timing out. You can set the length of time to wait before this exception is thrown by calling MongoCursor::timeout() on the cursor or setting MongoCursor::$timeout. The static variable is useful for queries such as database commands and MongoCollection::findOne(), both of which implicitly use cursors.

类摘要

MongoCursorTimeoutException extends MongoCursorException {
}

Exceptions
在线手册:中文  英文

用户评论:

Salocin.TEN (2012-08-26 22:39:55)

If you wish to turn off timeouts, do...
MongoCursor::$timeout = -1;

易百教程