public RedisWriteLockPrimitive( RedisKey readerKey, RedisKey writerKey, RedisValue lockId, RedLockTimeouts timeouts) { this._readerKey = readerKey; this._writerKey = writerKey; this._lockId = lockId; this._timeouts = timeouts; this._mutexPrimitive = new RedisMutexPrimitive(this._writerKey, this._lockId, this._timeouts); }
public RedisWriterWaitingPrimitive(RedisKey writerKey, RedisValue baseLockId, RedLockTimeouts timeouts) : base(writerKey, baseLockId + LockIdSuffix, timeouts) { }
public RedisReadLockPrimitive(RedisKey readerKey, RedisKey writerKey, RedLockTimeouts timeouts) { this._readerKey = readerKey; this._writerKey = writerKey; this._timeouts = timeouts; }
public RedisSemaphorePrimitive(RedisKey key, int maxCount, RedLockTimeouts timeouts) { this._key = key; this._maxCount = maxCount; this._timeouts = timeouts; }
public RedisMutexPrimitive(RedisKey key, RedisValue lockId, RedLockTimeouts timeouts) { this._key = key; this._lockId = lockId; this._timeouts = timeouts; }