(self, name, keys, *args, **options)
return script(self, keys, args, options)
Execute a registered lua script at ``name``.

        The script must be implemented via subclassing :class:`RedisScript`.

        :param name: the name of the registered script.
        :param keys: tuple/list of keys pased to the script.
        :param args: argument passed to the script.
        :param options: key-value parameters passed to the
            :meth:`RedisScript.callback` method once the script has finished
            execution.
Execute a registered lua script at ``name``.
Execute a registered lua script at name .
def execute_script(self, name, keys, *args, **options):
        '''Execute a registered lua script at ``name``.

        The script must be implemented via subclassing :class:`RedisScript`.

        :param name: the name of the registered script.
        :param keys: tuple/list of keys pased to the script.
        :param args: argument passed to the script.
        :param options: key-value parameters passed to the
            :meth:`RedisScript.callback` method once the script has finished
            execution.
        '''
        script = get_script(name)
        if not script:
            raise RedisError('No such script "%s"' % name)
        address = self.address()
        if address not in all_loaded_scripts:
            all_loaded_scripts[address] = set()
        loaded = all_loaded_scripts[address]
        toload = script.required_scripts.difference(loaded)
        for name in toload:
            s = get_script(name)
            self.script_load(s.script)
        loaded.update(toload)
        return script(self, keys, args, options)
def execute_script ( self , name , keys , * args , * * options ) : script = get_script ( name ) if not script : raise RedisError ( 'No such script "%s"' % name ) address = self . address ( ) if address not in all_loaded_scripts : all_loaded_scripts [ address ] = set ( ) loaded = all_loaded_scripts [ address ] toload = script . required_scripts . difference ( loaded ) for name in toload : s = get_script ( name ) self . script_load ( s . script ) loaded . update ( toload ) return script ( self , keys , args , options )