glide_sync.sync_commands.cluster_scan_cursor
ClusterScanCursor
Represents a cursor for cluster scan operations.
This class manages the state of a cluster scan cursor and automatically cleans up resources when the cursor is no longer needed.
Source code in doc-gen/valkey-glide/python/glide-sync/glide_sync/sync_commands/cluster_scan_cursor.py
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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |
get_cursor()
Get the current cursor string.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The current cursor string |
Source code in doc-gen/valkey-glide/python/glide-sync/glide_sync/sync_commands/cluster_scan_cursor.py
35 36 37 38 39 40 41 42 | |
is_finished()
Check if the cluster scan is finished.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if the scan is finished, False otherwise |
Source code in doc-gen/valkey-glide/python/glide-sync/glide_sync/sync_commands/cluster_scan_cursor.py
44 45 46 47 48 49 50 51 | |