andymccurdy/redis-py — pull request #454 by mathieulongtin (2014-04-08 13:24:52+00:00)
Title: Only load lua script if it's not already loaded

In register_script, check if the script already exist with the SHA1 digest first. If it doesn't, then load it.

Another option would be to not load it all in Script.__init__ and let Script.call load it when it doesn't find it.