SDK Examples
SDK Performance Optimization
Optimize SDK performance for production applications
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Optimize SDK performance for production applications
const cache = new Map();
async function getCachedScore(identity) {
if (cache.has(identity)) {
return cache.get(identity);
}
const score = await client.getScore(identity);
cache.set(identity, score);
return score;
}