Skip to content

Commit

Permalink
Fixed getting value type keys from IKeyValueStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri authored Sep 20, 2024
1 parent 7263ac3 commit 0d960d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async ValueTask ClearAsync(string key, CancellationToken ct)
if (!settings.DisableInMemoryCache)
{
var val = await InMemoryStorage.GetAsync<TValue>(key, ct);
if (val is not null)
if (val != default(TValue))
{
return val;
}
Expand Down

0 comments on commit 0d960d9

Please sign in to comment.