hazelcast-python-client
hazelcast-python-client copied to clipboard
Get the state of a map, and subscribe for updates
Hi
I'm wondering if there is any way around the following code to get the state of a map, and subscribe for updates:
for t in self._mymap.values(predicate):
on_update(t)
registration_id = self._mymap.add_entry_listener(include_value=True,
added_func=on_update,
predicate=predicate)
In particular, how to avoid a race condition here?
Hi @markns
What you are asking for can be done with Query Cache but as now, Python client doesn't have this feature. I am going to cc the product management so we can add query cache to the Python client in the future if it fits their plans
cc @burakcelebi
Hi @markns, thank you for submitting your feature request! I have added this to our Python client roadmap. I'll discuss it with the team. Let's see when this can be shipped. Thanks again!