def lock(self, name, timeout=None, sleep=0.1):
        return Lock(self, name, timeout=timeout, sleep=sleep)
Returns the IndexProxy class.
dataset/ETHPy150Open zhihu/redis-shard/redis_shard/shard.py/RedisShardAPI.lock--crossover with--dataset/ETHPy150Open espeed/bulbs/bulbs/rexster/index.py/Index.get_proxy_class