mirror of
https://github.com/predis/predis.git
synced 2026-08-19 23:31:49 +00:00
18 lines
291 B
PHP
18 lines
291 B
PHP
<?php
|
|
|
|
namespace Predis\Commands;
|
|
|
|
class Ping extends Command {
|
|
public function getId() {
|
|
return 'PING';
|
|
}
|
|
|
|
protected function canBeHashed() {
|
|
return false;
|
|
}
|
|
|
|
public function parseResponse($data) {
|
|
return $data === 'PONG' ? true : false;
|
|
}
|
|
}
|