code: def set_lock(key, value=None, expiry_time=60):
      
      from uliweb.utils.common import get_uuid
  
      redis = get_redis()
      value = value or get_uuid()
      return redis.set(key, value, ex=expiry_time, xx=True)
docs: Force to set a distribute lock