©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PECL mongo >=0.9.0)
MongoCursor::reset — Clears the cursor
此函数没有参数。
NULL
.
[#1] fastest963 at gmail dot com [2013-01-04 19:45:15]
If you call reset() on a cursor and never call hasNext/getNext/etc it will essentially act as a "close" method. This is useful if you didn't finish fetching all the data from a cursor but don't want it to linger around till MongoDB decides to kill it.