rendertron icon indicating copy to clipboard operation
rendertron copied to clipboard

[Feature] Added MongoDB caching support

Open gravi2 opened this issue 4 years ago • 1 comments

This PR does following:

  1. Adds support for using MongoDB for caching.
  2. Includes some minor DRY changes in the rendertron.ts for cache config selection.
  3. README and configuration document changes.

Below is sample configuration that should be used for MongoDB cache.

{
    "timeout": 60000,
    "cache": "mongodb",
    "cacheConfig": {
        "cacheDurationMinutes": 21600,
        "cacheMaxEntries": -1,
        "mongoURI": "mongodb://192.168.86.22:27017/render-cache"
    }
}

gravi2 avatar Jun 04 '21 08:06 gravi2

@AVGP Please consider this PR for adding support for MongoDB cache.

gravi2 avatar Jun 04 '21 08:06 gravi2