You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A**lightweight, high-performance** Least Recently Used (LRU) cache implementation for JavaScript and TypeScript. Features **O(1) operations**, optional **TTL (time-to-live)** support, and works seamlessly in both **Node.js and browser** environments.
9
+
An**ultra-fast, lightweight** Least Recently Used (LRU) cache implementation for JavaScript and TypeScript. Delivers **industry-leading UPDATE performance (340K+ ops/sec)** with the **smallest bundle size (2.3KB)** among full-featured LRU libraries. Features **O(1) operations**, optional **TTL (time-to-live)** support, and works seamlessly in both **Node.js and browser** environments.
10
10
11
-
Perfect for caching API responses, memoizing expensive computations, session management, and any scenario where you need fast, memory-efficient caching with automatic eviction of least-used items.
11
+
Perfect for high-frequency cache updates, API response caching, memoizing expensive computations, session management, and any scenario where you need blazing-fast, memory-efficient caching with automatic eviction of least-used items.
12
12
13
-
> **🎯 Why Tiny LRU?** Just **2.3KB minified**, delivers **~119K GET ops/sec** performance, maintains **100% test coverage**, and provides **full TypeScript support** - making it the ideal choice for performance-critical applications.
13
+
> **🎯 Why Tiny LRU?** Just **2.3KB minified**, delivers **~340K UPDATE ops/sec** and **~120K GET ops/sec** performance, maintains **100% test coverage**, and provides **full TypeScript support** - making it the ideal choice for performance-critical applications.
14
14
15
15
## Features
16
16
17
-
- 🚀 **High Performance** - Optimized for speed with O(1) operations
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "tiny-lru",
3
-
"description": "Lightweight, high-performance LRU cache with TTL support for Node.js and browsers. O(1) operations, TypeScript support, 100% test coverage.",
3
+
"description": "Ultra-fast LRU cache (340K+ UPDATE ops/sec) with TTL support. Smallest bundle (2.3KB), O(1) operations, TypeScript support, 100% test coverage.",
0 commit comments