Preventing multiple emails from being sent

introducing Redis and using its volatile key
feature to create a lock that gets deleted
on its own after a set expiration time.

http://redis.io/commands/setnx
http://redis.io/commands/expire