-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Description
#16 allowed the ability to manage a cache of flags and users.
How it worked:
-
When initialising the SDK with a cache parameter, it first validated the values here
-
When retrieving a flag, it will query async
cache.has("flags"), if it returns a value it will skip hitting the APIhere -
When flags have been retrieved it will set the cache with
cache.set("flags")here -
When retrieving a flag for an identity, query async
cache.has("identity_id"), if it returns a value it will skip hitting the API here -
When flags have been retrieved for an identity set the cache with
cache.set("identity_id")here
Metadata
Metadata
Assignees
Labels
No labels