public function mk($key, $value, $ttl = 0)
    {
        $body = $request = $this->set(
            $key,
            $value,
            $ttl,
            array('prevExist' => 'false')
        );

        if (isset($body['errorCode'])) {
            throw new KeyExistsException($body['message'], $body['errorCode']);
        }

        return $body;
    }
public function mk($key, $value, $ttl = 0)
    {
        $body = $request = $this->set(
            $key,
            $value,
            $ttl,
            array('prevExist' => 'false')
        );

        if (isset($body['errorCode'])) {
            throw new KeyExistsException($body['message'], $body['errorCode']);
        }

        return $body;
    }
public function mk ( $ key , $ value , $ ttl = 0 ) { $ body = $ request = $ this -> set ( $ key , $ value , $ ttl , array ( 'prevExist' => 'false' ) ) ; if ( isset ( $ body [ 'errorCode' ] ) ) { throw new KeyExistsException ( $ body [ 'message' ] , $ body [ 'errorCode' ] ) ; } return $ body ; }
make a new key with a given value

@param string $key
@param string $value
@param int $ttl
@return array $body
@throws KeyExistsException
make a new key with a given value