Local caching layer for Tweek feature management client. Provides in-memory caching with configurable TTL to reduce network requests and improve latency when fetching feature toggles from Tweek service. v0.8.0 is current stable; release cadence is irregular. Key differentiator: designed specifically for tweek-client, supports key-value caching with automatic invalidation. Maintained by Soluto. TypeScript definitions included.
npm install tweek-local-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Tweek client with local caching, fetches a feature value.
Use import syntax or downgrade to v0.4.
Set longer TTL or implement custom refresh logic if needed.
Set maxEntries conservatively to avoid unexpected evictions.
Provide at least an empty object: new TweekLocalCache({}).Use import { TweekLocalCache } from 'tweek-local-cache' or set type: 'module' in package.json.Pass a TweekLocalCache instance as 'cache' option to TweekClient.
Update to v0.5+ or define the interface manually.
No dependency data recorded yet.