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

Method GetDataType

src/RedisView/RedisLib/RedisClient.cpp:1441–1456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1439}
1440
1441int RedisClient::GetDataType(QByteArray &type) {
1442 if ("string" == type)
1443 return KeyType::STRING;
1444 else if ("list" == type)
1445 return KeyType::LIST;
1446 else if ("set" == type)
1447 return KeyType::SET;
1448 else if ("zset" == type)
1449 return KeyType::ZSET;
1450 else if ("hash" == type)
1451 return KeyType::HASH;
1452 else if ("none" == type)
1453 return KeyType::NONE;
1454 else
1455 return KeyType::NONE;
1456}
1457
1458/**
1459 * 返回key所储存的值的类型

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected