Skip to content

Add the global redis cache the ability for caching query results #8495

@andreisucman

Description

@andreisucman

New Issue Checklist

Issue Description

It would be nice to have global redis cache cache query results from Mongo DB by default.

Steps to reproduce

  1. Install a redis server and make sure it's running.
  2. Connect the redis server to parse via redis adapter like this:

const RedisCacheAdapter = require("parse-server").RedisCacheAdapter;

const serverConfig = {
   ...
   cacheAdapter: new RedisCacheAdapter({ url: process.env.REDIS_URL }),
   ...
}

Environment

node 18.2.0
redis-server on local docker v7.0.10
redis-server on digital ocean droplet with ubuntu 22 v7.0.4

Server

  • Parse Server version: ^6.0.0
  • Operating system: Win 64
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Redis server tested both on redis-server version=7.0.10 on a local docker container as well as digital ocean droplet with ubuntu 22 redis-version 7.0.4

Database

  • System (MongoDB or Postgres): Mongo
  • Database version: 5.0.15
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Atlas

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): JavaScript
  • SDK version: ^4.0.1

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions