SetAdd.php 351 B

12345678910111213141516171819
  1. <?php
  2. namespace Predis\Commands;
  3. use Predis\Helpers;
  4. class SetAdd extends Command {
  5. public function getId() {
  6. return 'SADD';
  7. }
  8. protected function filterArguments(Array $arguments) {
  9. return Helpers::filterVariadicValues($arguments);
  10. }
  11. public function parseResponse($data) {
  12. return (bool) $data;
  13. }
  14. }