i want to set expire time to redis pub/sub messages while being published. How do i do it in nodeJS?
var redis = require('redis');
redis.createClient().publish('some channel', 'some message', function(err) {
if (err) {
console.error('error publishing:', err);
}
});
The code to pusblish a message is above. what all changes do i have to do to set expiry time for the published message.
via The-Higgs-Boson
No comments:
Post a Comment