In-memory caching layer for Parse Server queries using LRU cache. Current version: 2.1.0. Provides drop-in cache methods (findCache, getCache, countCache, etc.) that replace standard Parse Query calls. Key differentiators: automatic cache invalidation on data mutations, configurable TTL and size, built-in debug mode, and cache statistics tracking. Lightweight without external cache dependencies.
npm install parse-cache-memoryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the cache with custom options and demonstrates a basic cached query using findCache().
Ensure parseCacheInit() is called once at application startup before any Parse.Query cache methods.
Use standard Parse Query methods for complex queries and revert to cache methods only for simple fetches.
No fix; design applications to tolerate cold cache or use external cache like Redis if persistence is needed.
Use 'max' option instead of 'maxSize'.
Ensure parseCacheInit() is called at the start of your application before any Parse.Query is instantiated.
Use const { parseCacheInit } = require('parse-cache-memory'); then call parseCacheInit();Use require('parse-cache-memory').parseCacheInit or destructure correctly.