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

Does not seem to read your write. #146

Open
MaoZiming opened this issue Sep 2, 2024 · 0 comments
Open

Does not seem to read your write. #146

MaoZiming opened this issue Sep 2, 2024 · 0 comments

Comments

@MaoZiming
Copy link

I have some code structured in this way:

memcached_return_t set_result;
set_result = memcached_set(memc, request->key().c_str(), request->key().size(), db_value.c_str(), db_value.size(), (time_t)ttl_, (uint32_t)0);
assert(set_result == MEMCACHED_SUCCESS);
memcached_return_t get_result;
char *value = memcached_get(memc, request->key().c_str(), request->key().size(), &value_length, &flags, &get_result);
assert(value != NULL);

The second assert is triggered, even though memcached_set has succeeded.
Just wondering what could be a possible reason for that. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant