Skip to content

Commit 83bc4a3

Browse files
author
Alan Quillin
committed
Fixed issue caused when cache is empty
1 parent deab0b5 commit 83bc4a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/corelib/Core/Caching/UserAccessCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public UserAccess Get(string key, Func<UserAccess> refreshCallback, bool forceCa
5757
}
5858
else
5959
{
60-
userAccess = null;
60+
userAccess = _tokenCache.AddOrUpdate(key, k => refreshCallback(), (k, existing) => refreshCallback());
6161
}
6262
}
6363

0 commit comments

Comments
 (0)