/**
  * Remove an ID from an index
  * @param  string $id
  * @param  string $index
  * @return void
  */
 protected function removeIndexId(string $id, string $index)
 {
     if ($this->redis->scard($index) == 1) {
         return $this->redis->del($index);
     }
     return $this->redis->srem($index, $id);
 }
Exemple #2
0
 /**
  * {@inheritDoc}
  */
 public function srem($key, $member)
 {
     return $this->predis->srem($key, $member);
 }