略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: MongoCursor::reset

2024-11-14

MongoCursor::reset

(PECL mongo >=0.9.0)

MongoCursor::resetClears the cursor

说明

public MongoCursor::reset ( void ) : void

参数

此函数没有参数。

返回值

NULL.

add a note add a note

User Contributed Notes 1 note

up
1
fastest963 at gmail dot com
6 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.

官方地址:https://www.php.net/manual/en/mongocursor.reset.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3