---
title: "PSUBSCRIBE"
url: "https://docs.yugabyte.com/stable/yedis/api/psubscribe/"
---

# PSUBSCRIBE

## Synopsis

**`PSUBSCRIBE pattern [pattern ...]`**

This command subscribes the client to the specified pattern(s). The client will receive a message whenever a publisher sends a message to a channel that matches any of the patterns that it has subscribed to.

## See also

[`keys`](/stable/yedis/api/keys/ "keys"), [`pubsub`](/stable/yedis/api/pubsub/ "pubsub"), [`publish`](/stable/yedis/api/publish/ "publish"), [`subscribe`](/stable/yedis/api/subscribe/ "subscribe"), [`unsubscribe`](/stable/yedis/api/unsubscribe/ "unsubscribe"), [`psubscribe`](/stable/yedis/api/psubscribe/ "psubscribe"), [`punsubscribe`](/stable/yedis/api/punsubscribe/ "punsubscribe")
