Skip to main content

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
TypeName
System.Stringkey
System.Int32acquisitionTimeout
System.Int32lockTimeout
System.Int64lockExpire
ServiceStack.Redis.IRedisClientclient

Unlock(String, Int64, IRedisClient)

View Source
Declaration
bool Unlock(string key, long lockExpire, IRedisClient client)
Returns

System.Boolean

Parameters
TypeName
System.Stringkey
System.Int64lockExpire
ServiceStack.Redis.IRedisClientclient