forked from valkey-io/valkey-glide-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcluster_scan_cursor.stub.php
More file actions
52 lines (47 loc) · 1.09 KB
/
cluster_scan_cursor.stub.php
File metadata and controls
52 lines (47 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* @generate-function-entries
* @generate-legacy-arginfo
* @generate-class-entries
*/
/**
* ClusterScanCursor represents a cursor for cluster scan operations.
*
* This class provides API compatibility with the Go implementation and
* manages cluster scan cursor lifecycle to prevent memory leaks.
*/
final class ClusterScanCursor
{
/**
* Create a new ClusterScanCursor instance.
*
* @param string|null $cursorId The cursor ID string. Defaults to "0" for initial cursor.
*/
public function __construct(?string $cursorId = null)
{
}
/**
* Get the cursor ID string.
*
* @return string The cursor ID
*/
public function getCursor(): string
{
}
/**
* Get the cursor ID string.
*
* @return string The next cursor ID, avaliable after a scan operation
*/
public function getNextCursor(): string
{
}
/**
* Check if the cursor indicates scan completion.
*
* @return bool True if cursor equals "finished", false otherwise
*/
public function isFinished(): bool
{
}
}