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