php教程

MongoCursor::reset

(PECL mongo >=0.9.0)

MongoCursor::resetClears the cursor

说明

public MongoCursor::reset ( void ) : void

参数

此函数没有参数。

返回值

NULL.

User Contributed Notes

fastest963 at gmail dot com 04-Jan-2013 07:45
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.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788