Skip to content

Commit

Permalink
chore: Fix getting value type keys from IKeyValueStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri committed Sep 20, 2024
1 parent 7263ac3 commit d1221a5
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 d1221a5

Please sign in to comment.