/// <summary> /// Removes the tenant from the cache. /// </summary> /// <param name="tenantId">The tenant identifier.</param> public void Remove(Guid tenantId) { lock (_keyLock.Lock(tenantId)) { _dict.TryRemove(tenantId, out _); _keyLock.Remove(tenantId); } }
/// <summary> /// Removes the tenant from the cache. /// </summary> /// <param name="tenantId">The tenant identifier.</param> public void Remove(Guid tenantId) { lock (_keyLock.Lock(tenantId)) { _dict.TryRemove(tenantId, out CacheValue <TColl> cv); _keyLock.Remove(tenantId); } }