|
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. Description
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. Parameters
Return Values
Returns Errors/Exceptions
This method displays a warning if the supplied
ExamplesExample #1 MongoClient::killCursor example This example shows how to connect, do a query, obtain the cursor information and then kill the cursor.
<?php |