Ping.php 291 B

1234567891011121314151617
  1. <?php
  2. namespace Predis\Commands;
  3. class Ping extends Command {
  4. public function getId() {
  5. return 'PING';
  6. }
  7. protected function canBeHashed() {
  8. return false;
  9. }
  10. public function parseResponse($data) {
  11. return $data === 'PONG' ? true : false;
  12. }
  13. }