{"action":"closed","issue":{"url":"https://api.github.com/repos/antirez/redis/issues/2540","labels_url":"https://api.github.com/repos/antirez/redis/issues/2540/labels{/name}","comments_url":"https://api.github.com/repos/antirez/redis/issues/2540/comments","events_url":"https://api.github.com/repos/antirez/redis/issues/2540/events","html_url":"https://github.com/antirez/redis/issues/2540","id":70721451,"number":2540,"title":"Subscribe a channel but execute a lua script with the result","user":{"login":"txgruppi","id":91159,"avatar_url":"https://avatars.githubusercontent.com/u/91159?v=3","gravatar_id":"","url":"https://api.github.com/users/txgruppi","html_url":"https://github.com/txgruppi","followers_url":"https://api.github.com/users/txgruppi/followers","following_url":"https://api.github.com/users/txgruppi/following{/other_user}","gists_url":"https://api.github.com/users/txgruppi/gists{/gist_id}","starred_url":"https://api.github.com/users/txgruppi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/txgruppi/subscriptions","organizations_url":"https://api.github.com/users/txgruppi/orgs","repos_url":"https://api.github.com/users/txgruppi/repos","events_url":"https://api.github.com/users/txgruppi/events{/privacy}","received_events_url":"https://api.github.com/users/txgruppi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-24T15:37:08Z","updated_at":"2015-04-29T08:12:21Z","closed_at":"2015-04-29T08:12:21Z","body":"It would be nice to have a command where you can subscribe to a channel but instead of receiving the value of the \"event\" it would go to a saved lua script.\r\n\r\nIt would be useful for me because I would like to do some processing after certain events, specially keyevents.\r\n\r\nCreate a channel+script subscription\r\n`SSUBSCRIBE [channel] [script name or sha]`\r\n\r\nEach command from `pub/sub` family would have its `script` version.\r\n\r\nSomething like: https://matt.sh/advanced-redis-pubsub-scripts"}}