def lock(self, name, timeout=None, sleep=0.1):
        return Lock(self, name, timeout=timeout, sleep=sleep)
Return a new Lock object using key ``name`` that mimics
dataset/ETHPy150Open zhihu/redis-shard/redis_shard/shard.py/RedisShardAPI.lock