?
This document uses PHP Chinese website manual Release
PING [message]
自1.0.0起可用。
返回PONG
如果沒有提供參數(shù),否則返回參數(shù)的副本作為一個(gè)主體。此命令通常用于測試連接是否仍然存在,或測量延遲。
如果客戶訂購了一個(gè)渠道或一個(gè)模式,它將返回一個(gè)多頭,在第一個(gè)位置帶有“pong”,而在第二個(gè)位置帶有空批量,除非提供了參數(shù),在這種情況下它會(huì)返回一個(gè)副本的論點(diǎn)。
Simple string reply
redis> PING "PONG"
redis> PING "hello world" "hello world"