keyevent/keyspace notifications do not send field name of a hashmap (only hashmap key):
127.0.0.1:6379> hset hash1 field1 value1
127.0.0.1:6379> PSUBSCRIBE __keyspace@0__*
Reading messages... (press Ctrl-C to quit)
1) "psubscribe"
2) "__keyspace@0__*"
3) (integer) 1
1) "pmessage"
2) "__keyspace@0__*"
3) "__keyspace@0__:hash1"
4) "hset"
is there a plan to also add field name? something like this:
127.0.0.1:6379> PSUBSCRIBE __keyspace@0__*
Reading messages... (press Ctrl-C to quit)
1) "psubscribe"
2) "__keyspace@0__*"
3) (integer) 1
1) "pmessage"
2) "__keyspace@0__*"
3) "__keyspace@0__:hash1"
4) "hset"
5) "field1"
Comment From: itamarhaber
Hello @hawell
is there a plan to also add field name?
I don't believe there are such plans because events are meant to be simple and with little payload. Why do you need this feature?
Comment From: hawell
I keep a cache of some hashmaps and I like to update only the modified fields. of course I can flatten my data but this way it's cleaner