RedLock.net icon indicating copy to clipboard operation
RedLock.net copied to clipboard

Unlock from a different server

Open neil-119 opened this issue 6 years ago • 0 comments

The pattern for using RedLock.net is as follows:

using (var redLock = await redlockFactory.CreateLockAsync(resource, expiry))
	if (redLock.IsAcquired)
	{
		// do stuff
	}

However, in our case, the server that does the locking and the server that would do the unlocking (upon completion) are different. Is there any way to unlock given just the resource and some kind of internal identifier?

neil-119 avatar Oct 19 '19 16:10 neil-119