We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1900fb8 commit 92cd45aCopy full SHA for 92cd45a
src/index.ts
@@ -125,7 +125,9 @@ export async function init(config: IClientConfig): Promise<EppoClient> {
125
// we estimate this will use no more than 10 MB of memory
126
// and should be appropriate for most server-side use cases.
127
clientInstance.useLRUInMemoryAssignmentCache(50_000);
128
- clientInstance.useLRUInMemoryBanditAssignmentCache(50_000);
+ // for bandits variant of LRU cache is use, that will
129
+ // expire on its own after set time. Defaults to 10 minutes
130
+ clientInstance.useExpiringInMemoryBanditAssignmentCache(50_000);
131
132
// Fetch configurations (which will also start regular polling per requestConfiguration)
133
await clientInstance.fetchFlagConfigurations();
0 commit comments