| 1439 | } |
| 1440 | |
| 1441 | int 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所储存的值的类型 |
nothing calls this directly
no outgoing calls
no test coverage detected