update : 2015.11.03
php.shukuma.com검색:
|
MongoClient::killCursor(PECL mongo >=1.5.0) MongoClient::killCursor — Kills a specific cursor on the server 설명
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(). 인수
반환값
Returns 오류/예외
This method displays a warning if the supplied
예제Example #1 MongoClient::killCursor() example This example shows how to connect, do a query, obtain the cursor information and then kill the cursor.
<?php |