Skip to content

Commit 533a4a1

Browse files
committed
use evaluation context hashcode as part of cache key
Signed-off-by: Torben Hørup <torben@t-hoerup.dk>
1 parent 2d7e6ca commit 533a4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenFeature.Contrib.Providers.GOFeatureFlag/GoFeatureFlagProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ private async Task<OfrepResponse> CallApi<T>(string flagKey, T defaultValue,
359359

360360
private string GenerateCacheKey(string flagKey, EvaluationContext ctx)
361361
{
362-
return ctx != null ? flagKey + ":" + new OfrepRequest(ctx).AsJsonString() : flagKey;
362+
return ctx != null ? flagKey + ":" + new OfrepRequest(ctx).AsJsonString().GetHashCode() : flagKey;
363363
}
364364

365365
/// <summary>

0 commit comments

Comments
 (0)