MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / SetFExpires

Method SetFExpires

src/object.cpp:1563–1570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1561}
1562
1563void redisObject::SetFExpires(bool fExpire)
1564{
1565 serverAssert(this->refcount != OBJ_SHARED_REFCOUNT || fExpire == FExpires());
1566 if (fExpire)
1567 this->refcount.fetch_or(1U << 31, std::memory_order_relaxed);
1568 else
1569 this->refcount.fetch_and(~(1U << 31), std::memory_order_relaxed);
1570}
1571
1572void redisObject::setrefcount(unsigned ref)
1573{

Callers 8

updateExpireFunction · 0.80
renameGenericCommandFunction · 0.80
moveCommandFunction · 0.80
removeExpireMethod · 0.80
setExpireMethod · 0.80
ensureMethod · 0.80
prefetchKeysAsyncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected