public function zadd($key, ...$dictionary)
    {
        $this->init();
        if (is_array($dictionary[0])) {
            $return = 0;
            foreach ($dictionary[0] as $member => $score) {
                $res = $this->zadd($key, $score, $member);
                $return += $res;
            }
            return $return;
        }
        return $this->driver->zadd($key, ...$dictionary);
    }
public function zadd($key, ...$dictionary)
    {
        $this->init();
        if (is_array($dictionary[0])) {
            $return = 0;
            foreach ($dictionary[0] as $member => $score) {
                $res = $this->zadd($key, $score, $member);
                $return += $res;
            }
            return $return;
        }
        return $this->driver->zadd($key, ...$dictionary);
    }
public function zadd ( $ key , ... $ dictionary ) { $ this -> init ( ) ; if ( is_array ( $ dictionary [ 0 ] ) ) { $ return = 0 ; foreach ( $ dictionary [ 0 ] as $ member => $ score ) { $ res = $ this -> zadd ( $ key , $ score , $ member ) ; $ return += $ res ; } return $ return ; } return $ this -> driver -> zadd ( $ key , ... $ dictionary ) ; }
Add one or more members to a sorted set, or update its score if it already exists
@param string $key
@param array $dictionary (score1, member1[, score2, member2]) or associative array: [member1 => score1, member2 => score2]
@return int
Add one or more members to a sorted set or update its score if it already exists