Skip to content

Implement feature flag cache and flag-called dedupe #96

Description

@marandaneto

Summary

Implement canonical feature flag cache behavior and $feature_flag_called dedupe by flag value for the Unity SDK.

Expected behavior

Feature flag cache

  • Successful flag loads cache flag values and payloads.
  • Cached reads do not require another network request.
  • Cached values/payloads are available to the public flag getter APIs.
  • Cache is cleared when identity reset invalidates user-scoped flags.

$feature_flag_called dedupe

  • Emit the first $feature_flag_called event for a flag value.
  • Suppress duplicate events for the same flag and same value.
  • Emit again when the flag value changes.

Specs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions