| 488 | } |
| 489 | |
| 490 | bool 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 | |
| 505 | bool RedisCluster::idletime(const QString& key, qlonglong & value) { |
| 506 | _redisClient = getClient(key); |
nothing calls this directly
no test coverage detected