For a javascript library for caching data, the strongest matches are isaacs/node-lru-cache (This library provides robust in-memory caching with support for), ptarjan/node-cache (This library provides in-memory key-value storage with TTL expiration) and tannerlinsley/react-query (This library functions as a specialized cache manager for). mozilla/localforage and vercel/swr round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Curamos repositorios de código abierto en GitHub que coinciden con “best javascript caching libraries”. Los resultados están clasificados por relevancia según tu búsqueda; usa los filtros de abajo para acotar o refina con IA.
node-lru-cache is a key-value store for Node.js that implements a memory-limited cache. It prevents memory exhaustion by capping the total number of items or total byte size, automatically evicting the least-recently-used items to maintain these limits. The project provides specialized caching patterns, including time-to-live durations to ensure data freshness and a stale-while-revalidate mechanism that serves expired content while asynchronously fetching updates in the background. It also includes diagnostic tools for monitoring cache hits, misses, and eviction metrics through operational st
This library provides robust in-memory caching with support for TTL expiration and LRU eviction policies, though it lacks built-in persistent storage capabilities.
Node-cache is a lightweight in-memory data storage module designed for Node.js applications. It functions as a key-value store that maintains frequently accessed data directly within the application runtime to improve response times and reduce latency. The library manages the lifecycle of stored information through automated expiration policies, which use internal timers to remove stale entries once a defined time-to-live duration has elapsed. It provides granular control over stored resources, allowing for the manual inspection, deletion, or clearing of specific keys to manage memory usage e
This library provides in-memory key-value storage with TTL expiration for Node.js applications, serving as a focused tool for managing application state and improving performance.
React Query is an asynchronous state management library and data fetching orchestrator designed to fetch, cache, and synchronize server state in web applications. It functions as a server-state cache manager that handles asynchronous data requests to keep local application state in sync with a remote server. The library implements a stale-while-revalidate cache pattern, which provides immediate access to cached data while triggering background updates to maintain consistency. It further supports optimistic user interface updates, allowing the interface to change immediately during data mutati
This library functions as a specialized cache manager for server state, providing robust in-memory caching, TTL-based expiration, and asynchronous revalidation strategies to optimize application performance.
localForage is a browser storage wrapper and key-value store that provides a unified JavaScript API for persisting data. It acts as an abstraction layer over IndexedDB, WebSQL, and localStorage, allowing web applications to save data offline. The library features a priority-based driver fallback system that automatically detects and selects the most capable storage engine available in the browser. It simplifies data management by providing an asynchronous interface for storing complex JavaScript objects and binary buffers without requiring manual serialization. The project covers broad capab
This library provides a robust asynchronous API for persistent client-side storage, serving as a foundational tool for managing application data even though it lacks built-in TTL or LRU eviction policies.
SWR is a data fetching library that provides a collection of hooks for managing remote data synchronization, caching, and state updates in web applications. It employs a declarative approach to handle complex network request lifecycles and dependency chains, ensuring that client-side application state remains consistent with server data through automatic revalidation and background updates. The library distinguishes itself through a reactive cache layer that automatically synchronizes local state with remote sources based on component lifecycle events. It features event-driven revalidation, w
SWR is a specialized data-fetching and caching library that manages remote state synchronization and in-memory caching for web applications, though it focuses more on network request lifecycles than general-purpose persistent storage.
This project provides a comprehensive suite of tools for managing asynchronous state and building full-stack web applications. At its core, it functions as a centralized synchronization layer that automates data fetching, caching, and background revalidation, ensuring that remote server data remains consistent with the local user interface. By utilizing a declarative, hook-based programming model, it simplifies the management of complex data lifecycles and loading states. The project distinguishes itself through a headless design philosophy that decouples business logic from visual presentati
This library provides a robust, hook-based caching and synchronization layer for server state, offering features like TTL-based expiration and background revalidation that effectively manage data performance in web applications.
Simple key-value storage with support for multiple backends
Keyv provides a simple key-value interface that supports both in-memory and persistent storage backends, including TTL expiration and an asynchronous API, making it a solid choice for managing application data.
A simple caching module that has set, get and delete methods and works a little bit like memcached. Keys can have a timeout (ttl) after which they expire and are deleted from the cache. All keys are stored in a single object so the practical limit is at around 1m keys.
This library provides in-memory caching with TTL expiration, serving as a straightforward tool for managing data in memory even though it lacks persistent storage and multi-level caching features.
Level is a database library that provides a unified interface for managing sorted key-value data. It functions as an abstraction layer that allows applications to store and retrieve binary information consistently across server-side environments and web browsers. The project utilizes a modular architecture that supports pluggable storage backends, enabling the system to adapt to different host environments while maintaining identical behavior. By organizing data in lexicographical order, it facilitates efficient range queries and ordered retrieval. The library handles large datasets through a
This is a database abstraction layer that provides persistent storage with asynchronous APIs, serving as a foundational tool for building caching systems even though it lacks built-in TTL or LRU policies.