ICommand.php 597 B

123456789101112131415161718192021222324
  1. <?php
  2. /*
  3. * This file is part of the Predis package.
  4. *
  5. * (c) Daniele Alessandri <suppakilla@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Predis\Commands;
  11. use Predis\Distribution\INodeKeyGenerator;
  12. interface ICommand
  13. {
  14. public function getId();
  15. public function getHash(INodeKeyGenerator $distributor);
  16. public function setArguments(Array $arguments);
  17. public function getArguments();
  18. public function prefixKeys($prefix);
  19. public function parseResponse($data);
  20. }