MCPcopy Create free account
hub / github.com/cc20110101/RedisView / refcount

Method refcount

src/RedisView/RedisLib/RedisCluster.cpp:490–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490bool RedisCluster::refcount(const QString& key, qlonglong & value) {
491 _redisClient = getClient(key);
492 if(!_redisClient) {
493 _sErrorInfo = "get client by key failed";
494 return false;
495 }
496
497 if(!_redisClient->refcount(key, value)) {
498 _sErrorInfo = _redisClient->getErrorInfo();
499 return false;
500 }
501
502 return true;
503}
504
505bool RedisCluster::idletime(const QString& key, qlonglong & value) {
506 _redisClient = getClient(key);

Callers

nothing calls this directly

Calls 1

getErrorInfoMethod · 0.45

Tested by

no test coverage detected