mirror of
https://github.com/predis/predis.git
synced 2026-08-27 10:34:10 +00:00
14 lines
291 B
PHP
14 lines
291 B
PHP
<?php
|
|
|
|
namespace Predis\Commands;
|
|
|
|
use Predis\Command;
|
|
|
|
class Ping extends Command {
|
|
public function canBeHashed() { return false; }
|
|
public function getCommandId() { return 'PING'; }
|
|
public function parseResponse($data) {
|
|
return $data === 'PONG' ? true : false;
|
|
}
|
|
}
|