{"id":45738,"library":"parse-cache","title":"parse-cache","description":"A caching wrapper for Parse SDK queries, supporting both memory and Redis storage. Version 0.0.13 is the latest and likely final release; the project appears unmaintained since 2021. Works with Node.js (cloud code) and browsers. Provides a simple .cache() method on queries with TTL support. Alternative to manual caching or parse-server built-in cache. Requires parse-server ≥2.8.4 and Parse SDK ≥2.1.","status":"maintenance","version":"0.0.13","language":"javascript","source_language":"en","source_url":"https://github.com/back4app/parse-cache","tags":["javascript","cache","memory","parse","parse-server","parseframework","redis","store","ttl"],"install":[{"cmd":"npm install parse-cache","lang":"bash","label":"npm"},{"cmd":"yarn add parse-cache","lang":"bash","label":"yarn"},{"cmd":"pnpm add parse-cache","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: works with Parse Node SDK or Parse JS SDK","package":"parse","optional":false},{"reason":"Required only when using Redis engine","package":"redis","optional":true}],"imports":[{"note":"This package has no ESM entry; use CommonJS require. Not tested with import.","wrong":"import parseCache from 'parse-cache';","symbol":"default","correct":"const parseCache = require('parse-cache');"},{"note":"Attached to Parse.Query prototype after calling parseCache(Parse, ...). Must be called before find/first/count/etc.","wrong":"","symbol":"cache method","correct":"query.cache(ttlSeconds, customKey?)"},{"note":"Global variable `parseCache` is exposed. Works with Parse JS SDK.","wrong":"","symbol":"Browser script","correct":"<script src='https://unpkg.com/parse-cache/dist/parse-cache.js'></script>"}],"quickstart":{"code":"const Parse = require('parse/node');\nconst parseCache = require('parse-cache');\n\n// Enable caching with memory store (default)\nparseCache(Parse, 'MyApp', { engine: 'memory', count: 1000 });\n\nconst query = new Parse.Query('GameScore');\nquery.cache(30); // cache for 30 seconds\nquery.equalTo('playerName', 'John');\nquery.find().then(results => {\n  console.log('fromCache:', results[0].fromCache);\n}).catch(console.error);","lang":"javascript","description":"Initializes parse-cache with memory storage, then runs a cached query showing the fromCache flag."},"warnings":[{"fix":"Ensure parseCache(Parse, ...) is called once at app startup before any query execution.","message":"parseCache() must be called before any query that uses .cache(). Otherwise .cache() is undefined.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Test compatibility with exact Parse SDK version. Avoid using with other caching libraries.","message":"This package overrides Parse.Query prototype methods. May conflict with other plugins or future Parse SDK updates.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Consider alternatives like parse-server built-in cache or custom caching.","message":"Not actively maintained. Last release 2021. No ESM support. No TypeScript definitions.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Run 'npm install redis' alongside parse-cache.","message":"Redis engine requires the 'redis' npm package installed separately. parse-cache does not list it as a dependency.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.0.13':18 '2.1':69 '2.8.4':65 '2021':31 'altern':49 'appear':28 'browser':38 'built':58 'built-in':57 'cach':3,5,42,52,60,71 'cloud':35 'code':36 'final':24 'javascript':70 'latest':21 'like':23 'manual':51 'memori':13,72 'method':43 'node.js':34 'pars':2,8,55,63,67,73,75 'parse-cach':1 'parse-serv':54,62,74 'parseframework':77 'project':27 'provid':39 'queri':10,45 'redi':15,78 'releas':25 'requir':61 'sdk':9,68 'server':56,64,76 'simpl':41 'sinc':30 'storag':16 'store':79 'support':11,48 'ttl':47,80 'unmaintain':29 'version':17 'work':32 'wrapper':6","created_at":"2026-06-07T12:56:28.768186+00:00","updated_at":"2026-06-07T12:56:28.768186+00:00","problems":[{"fix":"Call parseCache(Parse, 'AppName', {engine: 'memory'}) at the beginning of your script.","cause":"parseCache() was not called before creating queries, or called with wrong arguments.","error":"query.cache is not a function"},{"fix":"npm install redis","cause":"Using Redis engine without installing the 'redis' package.","error":"Cannot find module 'redis'"},{"fix":"Run the same query twice; only the second call has fromCache set to true.","cause":"Query was retrieved from server (not cached) or cache was invalidated.","error":"fromCache is undefined on results"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://www.back4app.com","github":"https://github.com/back4app/parse-cache","docs":null,"changelog":null,"pypi":null,"npm":"parse-cache","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}