MongoCursor::reset

(PECL mongo >=0.9.0)

MongoCursor::resetClears the cursor

설명

public void MongoCursor::reset ( void )

인수

이 함수는 인수가 없습니다.

반환값

NULL.

add a note add a note

User Contributed Notes 1 note

up
1
fastest963 at gmail dot com
11 years ago
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.
To Top