def zrank(self, name, value):
with self.pipe as pipe:<EOL><INDENT>value = self.valueparse.encode(value)<EOL>return pipe.zrank(self.redis_key(name), value)<EOL><DEDENT>
Returns the rank of the element.

:param name: str     the name of the redis key
:param value: the element in the sorted set