Skip to content

Commit

Permalink
Update Node.js SDK docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bpapillon committed Dec 4, 2024
1 parent 1ddc8c8 commit da5c944
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fern/docs/pages/developer_resources/sdks/nodejs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const cacheTTL = 1000; // in milliseconds
const client = new SchematicClient({
apiKey,
cacheProviders: {
flagChecks: [new LocalCache<boolean>({ size: cacheSize, ttl: cacheTTL })],
flagChecks: [new LocalCache<boolean>({ maxItems: cacheSize, ttl: cacheTTL })],
},
});

Expand Down Expand Up @@ -101,15 +101,17 @@ const client = new SchematicClient({ apiKey });

client.identify({
company: {
id: "your-company-id",
keys: { id: "your-company-id" },
name: "Acme, Inc.",
traits: { city: "Atlanta" },
},
keys: {
email: "wcoyote@acme.net",
userId: "your-user-id",
},
name: "Wile E. Coyote",
traits: {
city: "Atlanta",
enemy: "Bugs Bunny",
loginCount: 24,
isStaff: false,
},
Expand Down

0 comments on commit da5c944

Please sign in to comment.