2881099 / csredis

.NET Core or .NET Framework 4.0+ client for Redis and Redis Sentinel (2.8) and Cluster. Includes both synchronous and asynchronous clients.
MIT License
2.01k stars 414 forks source link

RedisHelper.Instance.Lock 方法怎么上锁呢? #438

Open 1995liuwei opened 2 years ago

1995liuwei commented 2 years ago

RedisHelper.Instance.Lock 如何使用呢?我有一段代码需要上锁,请问如何通过RedisHelper.Instance.Lock来实现

2881099 commented 2 years ago

using(RedisHelper.Lock(