IndexesMonitor¶
- class aerospike_sdk.index_monitor.IndexesMonitor[source]¶
Bases:
objectAsync background task that caches secondary index metadata.
Start via
start()(typically called byClient.connect). Retrieve cached data withget_index_context(). Stop viastop()(called byClient.close).Example:
monitor = IndexesMonitor() await monitor.start(client) ctx = monitor.get_index_context("test") await monitor.stop()
- Parameters:
refresh_interval (
float) – Seconds between cache refreshes (default 5.0).
- async start(client)[source]¶
Begin background refresh. Waits up to 1 s for the first fetch.
- Return type: