修改本页

Redis 命令 客户端 文档 社区 下载 问题 支持 许可

PSUBSCRIBE pattern [pattern …]

Related topics

相关命令

Available since 2.0.0.

时间复杂度: O(N) where N is the number of patterns the client is already subscribed to.

Subscribes the client to the given patterns.

Supported glob-style patterns:

  • h?llo subscribes to hello, hallo and hxllo
  • h*llo subscribes to hllo and heeeello
  • h[ae]llo subscribes to hello and hallo, but not hillo

Use \ to escape special characters if you want to match them verbatim.

Comments powered by Disqus

This website is open source software developed by Citrusbyte.

The Redis logo was designed by Carlos Prioglio. See more credits.

Sponsored by Redis Support