def __init__(self, key, redis, expires=60, timeout=10):

        self.key = key
        self.timeout = timeout
        self.expires = expires
        self.redis = redis
Distributed locking using Redis SETNX and GETSET.
dataset/ETHPy150Open saga-project/BigJob/pilot/impl/pilotdata_manager.py/Lock.__init__