{"library":"memory-cacher","type":"library","category":null,"description":"A lightweight in-memory cache with async value retrieval, deduplication of concurrent requests, and TTL support. Version 1.1.1 is the latest stable release. Published by Logz.io, it provides a simple API to cache asynchronous results, ensuring that multiple calls for the same key during ongoing retrieval will wait for the same promise, avoiding redundant executions. Unlike more feature-rich caches (e.g., node-cache or lru-cache), it focuses on simplicity and async-first design.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","memory cache","memory cacher"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install memory-cacher","imports":["import MemoryCacher from 'memory-cacher';","import MemoryCacher from 'memory-cacher';\nconst result = await MemoryCacher.getCached(key, fn, ttl);","import MemoryCacher from 'memory-cacher';\nawait MemoryCacher.setCached(key, value, ttl);"]},{"cmd":"yarn add memory-cacher","imports":[]},{"cmd":"pnpm add memory-cacher","imports":[]}],"homepage":"https://github.com/logzio/memory-cacher#readme","github":"ssh://git@github.com/logzio/memory-cacher","docs":null,"changelog":null,"pypi":null,"npm":"memory-cacher","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}