MCPcopy Create free account
hub / github.com/apache/kvrocks / MSetNX

Method MSetNX

src/types/redis_string.cc:547–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547rocksdb::Status String::MSetNX(engine::Context &ctx, const std::vector<StringPair> &pairs, bool *flag) {
548 return MSet(ctx, pairs, {/*expire=*/0, StringSetType::NX, /*keep_ttl=*/false}, flag);
549}
550
551// Change the value of user_key to a new_value if the current value of the key matches old_value.
552// ret will be:

Callers 3

ExecuteMethod · 0.80
TEST_FFunction · 0.80
testStringFunction · 0.80

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.64
testStringFunction · 0.64