{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/1075","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/1075/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/1075/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/1075/events","html_url":"https://github.com/hashicorp/consul/issues/1075","id":92543580,"number":1075,"title":"Keys with TTL not working.","user":{"login":"ThomasAlxDmy","id":1489947,"avatar_url":"https://avatars.githubusercontent.com/u/1489947?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasAlxDmy","html_url":"https://github.com/ThomasAlxDmy","followers_url":"https://api.github.com/users/ThomasAlxDmy/followers","following_url":"https://api.github.com/users/ThomasAlxDmy/following{/other_user}","gists_url":"https://api.github.com/users/ThomasAlxDmy/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasAlxDmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasAlxDmy/subscriptions","organizations_url":"https://api.github.com/users/ThomasAlxDmy/orgs","repos_url":"https://api.github.com/users/ThomasAlxDmy/repos","events_url":"https://api.github.com/users/ThomasAlxDmy/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasAlxDmy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-02T04:15:54Z","updated_at":"2015-07-02T06:19:07Z","closed_at":null,"body":"Hi guys,\r\n\r\nFrom what I read on the web and the commit history Consul supports KV with TTL since 5.0. The way it is supposed to work from my understanding is linking a session with a TTL to one or several keys using the `delete` option. When the Session will timeout the keys will get deleted. \r\n\r\nSo I created keys with a session id and pass it to the `Put` Method: https://github.com/hashicorp/consul/blob/master/api/kv.go#L125.\r\n\r\nHowever it uses `put` behind the scene that does not create the keys with session_id... https://github.com/hashicorp/consul/blob/master/api/kv.go#L170\r\n\r\nAm I using it in the wrong way or is it just unsupported? "},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/117922538","html_url":"https://github.com/hashicorp/consul/issues/1075#issuecomment-117922538","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/1075","id":117922538,"user":{"login":"ThomasAlxDmy","id":1489947,"avatar_url":"https://avatars.githubusercontent.com/u/1489947?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasAlxDmy","html_url":"https://github.com/ThomasAlxDmy","followers_url":"https://api.github.com/users/ThomasAlxDmy/followers","following_url":"https://api.github.com/users/ThomasAlxDmy/following{/other_user}","gists_url":"https://api.github.com/users/ThomasAlxDmy/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasAlxDmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasAlxDmy/subscriptions","organizations_url":"https://api.github.com/users/ThomasAlxDmy/orgs","repos_url":"https://api.github.com/users/ThomasAlxDmy/repos","events_url":"https://api.github.com/users/ThomasAlxDmy/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasAlxDmy/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T06:19:07Z","updated_at":"2015-07-02T06:19:07Z","body":"Sweet that actually make sense. Thank you for all the information!"}}