{"library":"petty-cache","type":"library","category":null,"description":"Two-level cache for Node.js (in-memory + Redis) with automatic serialization, jitter, double-checked locking to prevent cache stampedes and thundering herds. Version 3.7.0 released under MIT license with monthly releases. Key differentiators: built-in distributed mutex and semaphore primitives, jittered TTLs (default 30-60s Redis, 2-5s in-memory), and double-checked locking on cache miss functions. ESM-only since v3.0.0.","language":"javascript","status":"active","version":"3.7.0","tags":["javascript","cache","lock","mutex","redis","semaphore"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install petty-cache","imports":["import PettyCache from 'petty-cache'","import { Mutex } from 'petty-cache/mutex'","import { Semaphore } from 'petty-cache/semaphore'"]},{"cmd":"yarn add petty-cache","imports":[]},{"cmd":"pnpm add petty-cache","imports":[]}],"homepage":"https://github.com/stores-com/petty-cache","github":"https://github.com/stores-com/petty-cache","docs":null,"changelog":null,"pypi":null,"npm":"petty-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}