Number of distinct keys.
Number of values.
Iterate over key-value pairs.
Add a key-value pair. Values are stored in a Set, so duplicates are skipped.
count(key) after the operation.
Iterate over key and associated values.
List values associated with a key.
Remove a key-value pair. No-op if key-value does not exist.
count(key)
after the operation.
Subscribe to a topic.
Topic name.
sub
: Subscription object.objKey
: WeakMap-compatible key associated with the topic, only provided in the first
subscription.Deliver an update to a set of subscriptions.
Track subscriptions in a pubsub protocol. This is primarily useful to pubsub protocol implementors.