/// <summary> /// 释放指定资源的锁 /// </summary> /// <param name="resourceKey">资源名称</param> /// <param name="resourceValue">锁资源对应的值</param> public void Unlock(string resourceKey, string resourceValue) { RedisLock redisLock = new RedisLock(RedisManager.Connection); redisLock.Unlock(resourceKey, resourceValue); }
/// <summary> /// 释放指定资源的锁 /// </summary> /// <param name="lockInfo">锁对象</param> public void Unlock(LockInfo lockInfo) { RedisLock redisLock = new RedisLock(RedisManager.Connection); redisLock.Unlock(lockInfo); }