摘要:
使用redis存一些key,value数据,有部分value数据是整形值,于是想当然的写了下边的代码: 67 bool DBManager::getKeyInteger(const std::string& key, uint64_t& ret_val) { 68 redisContext* c; 69 redisReply* reply; 70 71 struct timeval timeout = {1, 500000}; 72 c = redisConnectWithTimeout(m_host.c_str(), m_port, timeout); 73 if (c... 阅读全文
posted @ 2012-08-28 18:56
刘浩de技术博客
阅读(7662)
评论(0)
推荐(3)
浙公网安备 33010602011771号