Skip to content

Commit 23cd9f3

Browse files
committed
Merge pull request #91 from alanquillin/FixCacheIssue
Fixed issue caused when cache is empty
2 parents deab0b5 + 83bc4a3 commit 23cd9f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)