Good news, I have figured out why the keys aren’t being cleaned up.
If you have set:
NotifyChannelOfSubscriptions = false
then the keys will not be cleaned up in Redis but when using MemoryEvents it works without issues.
Is this to be expected?
I do not want/need every client on the channel to be notified when a client subscribes or unsubscribes.
Currently I only want to notify certain clients when a client subscribes or unsubscribes which I am currently doing manually. hence me switching NotifyChannelOfSubscriptions to false.