{"action":"created","issue":{"url":"https://api.github.com/repos/mcollina/mosca/issues/334","labels_url":"https://api.github.com/repos/mcollina/mosca/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/mcollina/mosca/issues/334/comments","events_url":"https://api.github.com/repos/mcollina/mosca/issues/334/events","html_url":"https://github.com/mcollina/mosca/issues/334","id":102192542,"number":334,"title":"Persistence Redis - No data being saved","user":{"login":"Whitebeard86","id":6104934,"avatar_url":"https://avatars.githubusercontent.com/u/6104934?v=3","gravatar_id":"","url":"https://api.github.com/users/Whitebeard86","html_url":"https://github.com/Whitebeard86","followers_url":"https://api.github.com/users/Whitebeard86/followers","following_url":"https://api.github.com/users/Whitebeard86/following{/other_user}","gists_url":"https://api.github.com/users/Whitebeard86/gists{/gist_id}","starred_url":"https://api.github.com/users/Whitebeard86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Whitebeard86/subscriptions","organizations_url":"https://api.github.com/users/Whitebeard86/orgs","repos_url":"https://api.github.com/users/Whitebeard86/repos","events_url":"https://api.github.com/users/Whitebeard86/events{/privacy}","received_events_url":"https://api.github.com/users/Whitebeard86/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-20T17:44:26Z","updated_at":"2015-08-20T18:05:27Z","closed_at":"2015-08-20T18:05:27Z","body":"Hello,\r\n\r\nI'm trying to use redis for my \"offline messaging feature\". I've configured everything and the server runs normally. The problem is that no information is being recorded/saved on the redis server (0 keys on the log screen). I can see that when I start the mosca server, 4 clients are connected automatically to the redis server.\r\n\r\nThis is my configuration:\r\n\r\n```\r\nvar dbSettings = {\r\n\ttype: 'redis',\r\n\tredis: require('redis'),\r\n\tdb: 2,\r\n\tport: 6379,\r\n\treturn_buffers: true,\r\n\thost: \"localhost\"\r\n};\r\n\r\nvar settings = {\r\n\tport: 1883,\r\n\thttp: {\r\n\t\tport: 443,\r\n\t\tbundle: true,\r\n\t\tstatic: './'\r\n\t},\r\n\tpersistence: {\r\n\t\tfactory: mosca.persistence.Redis,\r\n\t\thost: 'localhost',\r\n\t\tport: 6379,\r\n\t\tdb: 2\r\n\t},\r\n\tbackend: dbSettings\r\n};\r\n```\r\n\r\nDo I need to set any extra configuration on Redis or in the client to make it work? What am I doing wrong?\r\n\r\nThanks,\r\nJ.\r\n "},"comment":{"url":"https://api.github.com/repos/mcollina/mosca/issues/comments/133100947","html_url":"https://github.com/mcollina/mosca/issues/334#issuecomment-133100947","issue_url":"https://api.github.com/repos/mcollina/mosca/issues/334","id":133100947,"user":{"login":"Whitebeard86","id":6104934,"avatar_url":"https://avatars.githubusercontent.com/u/6104934?v=3","gravatar_id":"","url":"https://api.github.com/users/Whitebeard86","html_url":"https://github.com/Whitebeard86","followers_url":"https://api.github.com/users/Whitebeard86/followers","following_url":"https://api.github.com/users/Whitebeard86/following{/other_user}","gists_url":"https://api.github.com/users/Whitebeard86/gists{/gist_id}","starred_url":"https://api.github.com/users/Whitebeard86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Whitebeard86/subscriptions","organizations_url":"https://api.github.com/users/Whitebeard86/orgs","repos_url":"https://api.github.com/users/Whitebeard86/repos","events_url":"https://api.github.com/users/Whitebeard86/events{/privacy}","received_events_url":"https://api.github.com/users/Whitebeard86/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T18:05:27Z","updated_at":"2015-08-20T18:05:27Z","body":"I have found out what I was doing wrong.\r\n\r\nIn the client application I had to sent the 'retained' flag on my message structure set to 'true'. It's saving correctly now!"}}