MongoCursor::reset

(PECL mongo >=0.9.0)

MongoCursor::resetClears the cursor

Description

public void MongoCursor::reset ( void )

Parameters

This function has no parameters.

Return Values

NULL.

Коментарии

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.
2013-01-04 21:45:15
http://php5.kiev.ua/manual/ru/mongocursor.reset.html

    Поддержать сайт на родительском проекте КГБ