{"action":"opened","issue":{"url":"https://api.github.com/repos/andymccurdy/redis-py/issues/693","labels_url":"https://api.github.com/repos/andymccurdy/redis-py/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/andymccurdy/redis-py/issues/693/comments","events_url":"https://api.github.com/repos/andymccurdy/redis-py/issues/693/events","html_url":"https://github.com/andymccurdy/redis-py/issues/693","id":121678773,"number":693,"title":"Redis ttl and pttl returns None when ttl value is 0","user":{"login":"marakal","id":7149724,"avatar_url":"https://avatars.githubusercontent.com/u/7149724?v=3","gravatar_id":"","url":"https://api.github.com/users/marakal","html_url":"https://github.com/marakal","followers_url":"https://api.github.com/users/marakal/followers","following_url":"https://api.github.com/users/marakal/following{/other_user}","gists_url":"https://api.github.com/users/marakal/gists{/gist_id}","starred_url":"https://api.github.com/users/marakal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marakal/subscriptions","organizations_url":"https://api.github.com/users/marakal/orgs","repos_url":"https://api.github.com/users/marakal/repos","events_url":"https://api.github.com/users/marakal/events{/privacy}","received_events_url":"https://api.github.com/users/marakal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-11T10:14:12Z","updated_at":"2015-12-11T10:14:12Z","closed_at":null,"body":"```python\r\nr=redis.Redis()\r\nprint r.set(\"foo\", \"bar\")\r\nprint r.expire(\"foo\", 1)\r\ntime.sleep(0.5)\r\nprint r.ttl(\"foo\")\r\nprint r.get(\"foo\")\r\n```\r\nprints\r\n```\r\nTrue\r\nTrue\r\nNone\r\nbar\r\n```\r\nbut ttl should return 0 in this case, expire is set"}}