{"library":"typescript-cacheable","type":"library","category":null,"description":"TypeScript Cacheable is an in-memory memoization decorator library designed to cache the results of expensive TypeScript methods or property accessors. Currently at version 3.0.3, it provides a stable API for enhancing application performance by storing computed values for subsequent retrieval. The library distinguishes itself by offering flexible caching scopes: 'GLOBAL' for application-wide caching, and 'LOCAL_STORAGE' which leverages Node.js's `AsyncLocalStorage` to provide request-scoped or call-chain-scoped caching, crucial for web applications. Cache keys can be automatically inferred from method parameters if they are JSON-serializable, or explicitly defined by implementing the `CacheableKey` interface for complex objects. While the library itself does not have a stated release cadence, its `3.x` version indicates active development and maintenance.","language":"javascript","status":"active","version":"3.0.3","tags":["javascript","cache","caching","memoize","memoization","typescript","decorator","memoise","memoisation"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typescript-cacheable","imports":["import { Cacheable } from 'typescript-cacheable';","import { CacheableKey } from 'typescript-cacheable';","import { Cacheable } from 'typescript-cacheable';\n// Example usage with options\n@Cacheable({ scope: 'GLOBAL', ttl: 60000 })"]},{"cmd":"yarn add typescript-cacheable","imports":[]},{"cmd":"pnpm add typescript-cacheable","imports":[]}],"homepage":"https://gitlab.com/msts-public/general/typescript-cacheable/#readme","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typescript-cacheable","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/typescript-cacheable/compatibility"}}