{"action":"opened","issue":{"url":"https://api.github.com/repos/antirez/redis/issues/4930","repository_url":"https://api.github.com/repos/antirez/redis","labels_url":"https://api.github.com/repos/antirez/redis/issues/4930/labels{/name}","comments_url":"https://api.github.com/repos/antirez/redis/issues/4930/comments","events_url":"https://api.github.com/repos/antirez/redis/issues/4930/events","html_url":"https://github.com/antirez/redis/issues/4930","id":324553799,"number":4930,"title":"help please - redis_client::get takes more than a second to reply ","user":{"login":"mia-at-speechmorphing","id":17604334,"avatar_url":"https://avatars2.githubusercontent.com/u/17604334?v=4","gravatar_id":"","url":"https://api.github.com/users/mia-at-speechmorphing","html_url":"https://github.com/mia-at-speechmorphing","followers_url":"https://api.github.com/users/mia-at-speechmorphing/followers","following_url":"https://api.github.com/users/mia-at-speechmorphing/following{/other_user}","gists_url":"https://api.github.com/users/mia-at-speechmorphing/gists{/gist_id}","starred_url":"https://api.github.com/users/mia-at-speechmorphing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mia-at-speechmorphing/subscriptions","organizations_url":"https://api.github.com/users/mia-at-speechmorphing/orgs","repos_url":"https://api.github.com/users/mia-at-speechmorphing/repos","events_url":"https://api.github.com/users/mia-at-speechmorphing/events{/privacy}","received_events_url":"https://api.github.com/users/mia-at-speechmorphing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-18T21:12:54Z","updated_at":"2018-05-18T21:12:54Z","closed_at":null,"author_association":"NONE","body":"last downloaded Redis code on August 2017 and adjusted it to be built for VisualStudio 2015 , x64\r\nso I may be asking about a bug that was fixed, although I did not see any mention of it.\r\nalso I am a very straight-forward user of Redis, so please bear with me.\r\n\r\nI noticed that calling \"get\" takes almost 2 seconds to return a value.\r\nmy key is \"Control:107:1\"; I am running a Redis server on my local machine; it has about 200 keys,\r\n\r\nI even deconstructed the command : redis_client->get(key).get() so I can measure timing - here is my code:\r\n\r\n<...snip...>\r\ncpp_redis::future_client* redis_client = new cpp_redis::future_client();\r\nredis_client::connect(host, port, nullptr);\r\n<...snip...>\r\n\r\n\tstring r;\r\n\r\n\tauto startTime = std::chrono::steady_clock::now();\r\n\r\n\tauto get = redis_client->get(key); \r\n\r\n\tauto endTime = std::chrono::steady_clock::now();\r\n\t__int64 iDiff2 = (std::chrono::duration_cast<std::chrono::microseconds>(endTime - startTime).count()) / 1000;\r\n\tstd::cout << \"redis_client->get(\" << key << \") \" << iDiff2 << std::endl;  \r\n\r\n\tauto val = get.get();\r\n\r\n\tauto endTime2 = std::chrono::steady_clock::now();\r\n\t__int64 iDiff3 = (std::chrono::duration_cast<std::chrono::microseconds>(endTime2 - endTime).count()) / 1000;\r\n\tstd::cout << \"get.get() \" << iDiff3 << std::endl;\r\n\r\n\tif (!val.is_null() && val.is_string())\r\n\t{\r\n\t\tauto startTime = std::chrono::steady_clock::now();\r\n\r\n\t\tr = val.as_string();\r\n\r\n\t\tauto endTime = std::chrono::steady_clock::now();\r\n\t\t__int64 iDiff2 = (std::chrono::duration_cast<std::chrono::microseconds>(endTime - startTime).count()) / 1000;\r\n\t\tstd::cout << \"val.as_string() \" << iDiff2 << std::endl;\r\n\t}\r\n\r\n\treturn r;\r\n\r\n----------------------\r\n\r\nmy result prints are:\r\n\r\nredis_client->get(Control:107:1) 0\r\n**get.get() 1939**\r\nval.as_string() 0\r\n\r\nplease help me understand....\r\nthank you\r\nMia"}}
{"actor":{"display_login":"mia-at-speechmorphing"}}