Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hash cmd hsetnx #70

Closed

Conversation

callme-taota
Copy link
Contributor

@github-actions github-actions bot added the ✏️ Feature New feature or request label Dec 5, 2023
}

auto hash = value->CastHash();
if (hash->insert(PHash::value_type(client->argv_[2], client->argv_[3])).second) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是也要加锁处理, 如果多个客户端同时操作, 可能会出现,查询没有,但是在插入时, 多个客户端同时插入数据

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不是很懂应该怎么实现😂

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hero-heng
Copy link
Contributor

handle conflict & use blackwidow interface

@callme-taota callme-taota deleted the hashcmdhsetnx branch January 14, 2024 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.1.0 core ✏️ Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants