|
MongoClient::killCursorKills a specific cursor on the server This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this method in the new extension. Beschreibung
public bool MongoClient::killCursor
( string
$server_hash
, int|MongoInt64 $id
)In certain situations it might be needed to kill a cursor on the server. Usually cursors time out after 10 minutes of inactivity, but it is possible to create an immortal cursor with MongoCursor::immortal that never times out. In order to be able to kill such an immortal cursor, you can call this method with the information supplied by MongoCursor::info. Parameter-Liste
Rückgabewerte
Returns Fehler/Exceptions
This method displays a warning if the supplied
BeispieleBeispiel #1 MongoClient::killCursor example This example shows how to connect, do a query, obtain the cursor information and then kill the cursor.
<?php |