MCPcopy
hub / github.com/redis/redis-py / unsubscribe

Method unsubscribe

redis/client.py:1389–1400  ·  view source on GitHub ↗

Unsubscribe from the supplied channels. If empty, unsubscribe from all channels

(self, *args)

Source from the content-addressed store, hash-verified

1387 return ret_val
1388
1389 def unsubscribe(self, *args):
1390 """
1391 Unsubscribe from the supplied channels. If empty, unsubscribe from
1392 all channels
1393 """
1394 if args:
1395 args = list_or_args(args[0], args[1:])
1396 channels = self._normalize_keys(dict.fromkeys(args))
1397 else:
1398 channels = self.channels
1399 self.pending_unsubscribe_channels.update(channels)
1400 return self.execute_command("UNSUBSCRIBE", *args)
1401
1402 def ssubscribe(
1403 self,

Callers 9

test_unsubscribeMethod · 0.45
test_unsubscribeMethod · 0.45
teardownMethod · 0.45
teardownMethod · 0.45

Calls 4

_normalize_keysMethod · 0.95
execute_commandMethod · 0.95
list_or_argsFunction · 0.90
updateMethod · 0.80