IDistributedLock
Distributed lock interface
Assembly: ServiceStack.Redis.dll
View Source
Declaration
public interface IDistributedLock
Methods
Lock(String, Int32, Int32, out Int64, IRedisClient)
View Source
Declaration
long Lock(string key, int acquisitionTimeout, int lockTimeout, out long lockExpire, IRedisClient client)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | acquisitionTimeout |
System.Int32 | lockTimeout |
System.Int64 | lockExpire |
ServiceStack.Redis.IRedisClient | client |
Unlock(String, Int64, IRedisClient)
View Source
Declaration
bool Unlock(string key, long lockExpire, IRedisClient client)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.Int64 | lockExpire |
ServiceStack.Redis.IRedisClient | client |