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