Skip to content

No values received with map.add_entry_listener(include_value=False, ... #154

@markns

Description

@markns

Hi,
When subscribing for updates on a map, I'd like to not receive the old value to save the serialization overhead. As far as I can see from the docs, the include_value=False flag should allow me to do this [1], however when setting this to false I don't see the new value either.

def recv_event(event: EntryEvent):
    print(type(event.value), type(event.old_value))

map.add_entry_listener(include_value=False, key=fid, added_func=recv_event, updated_func=recv_event)
# prints <class 'NoneType'> <class 'NoneType'>

map.add_entry_listener(include_value=True, key=fid, added_func=recv_event, updated_func=recv_event)
# prints <class 'dict'> <class 'dict'>

[1] http://hazelcast.github.io/hazelcast-python-client/3.10/hazelcast.proxy.map.html#hazelcast.proxy.map.Map.add_entry_listener
include_value – (bool), whether received events include an old value or not (optional).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions