I experimented with adding exactly that recently: https://matt.sh/advanced-redis-pubsub-scripts (code in the branch at https://github.com/mattsta/redis/tree/pubsub-scripting).
It hasn't been extensively tested, but it works for my isolated test cases.
Currently, NodeJS subscribes to expired keys. When the key is expired it will delete the 'physical' data from the server (thumbnails, more indepth info, etc). If NodeJS fails, even for a few seconds, I will forever have the 'physical' data stored on the server (as it doesn't re-run the expired event).
Having lua scripting do what NodeJS currently does would fix the problem.
Apart from that, Redis is perfect. ;)