Package
@humanspeak/memory-cache
A lightweight, zero-dependency in-memory cache for TypeScript and JavaScript with TTL expiration, LRU eviction, wildcard pattern deletion, and a powerful @cached decorator for method-level memoization. Perfect for API response caching, session storage, an
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 22.9k
- - over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 28 days ago
- v1.2.0
- GitHub stars
- 2
- 0 forks
- Open issues / PRs
- 2 / 2
- Contributors
- -
- Commits, last 52 weeks
- 153
No weekly download data in the snapshot.
22,856 downloads last week, 110,638 in the last month. No 52-week series has been fetched yet.
- Releases, last 12 months
- -
- Latest version
- 1.2.0, 27 Aug 202628 days ago
- First published
- -
- Last push to GitHub
- 10 Sept 202614 days before the snapshot
- Repository archived
- No
- Open issues
- 2
- Open pull requests
- 2
- Commits, last 52 weeks
- 153
- Dependents on npm
- 2
Major versions
-
Recent releases
-
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=20.19.0
- Runtimes
- -
- Unpacked size (npm)
- 116 kB
- Dependencies (0)
- None
npm install @humanspeak/memory-cache- jsDelivr
https://cdn.jsdelivr.net/npm/@humanspeak/memory-cache@1.2.0/ - unpkg
https://unpkg.com/@humanspeak/memory-cache@1.2.0/ - esm.sh
https://esm.sh/@humanspeak/memory-cache@1.2.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| lazy-get-decorator | 24.9k | - | 2 years ago | ESM + CommonJS | - |
| @brokerloop/ttlcache | 10.5k | - | 6 years ago | - | - |
| express-expeditious | 7.3k | - | 7 years ago | CommonJS | - |
| @type-cacheable/node-cache-adapter | 8.6k | - | 6 months ago | CommonJS | - |
| @type-cacheable/lru-cache-adapter | 5.7k | - | 6 months ago | CommonJS | - |
| @type-cacheable/core | 25.8k | - | 6 months ago | ESM + CommonJS | - |
| dialcache | 44.8k | - | 2 days ago | ESM + CommonJS | - |
| @type-cacheable/ioredis-adapter | 11.1k | - | 6 months ago | CommonJS | - |
Indexability: Indexed.