Ghost/ghost/adapter-cache-redis
Naz cc48ead945 Added option to share redis connections across caches
closes https://github.com/TryGhost/Arch/issues/85

- Added a cache configuration option to signal "reuse of redis connection" for Redis cache adapter. The connection reuse it turned on by default to be shared between caches. They rely on unique "keyPrefix" structure, so there is no collision side-effects when reusing same Redis Store.
- The Redis connection options like "ttl" are shared with the first connection that's crated. So if there's a need to have unique configuration, a separate connection has to be created by passing `"reuseConnection": false` parameter
2023-09-07 13:32:00 +08:00
..
lib Added option to share redis connections across caches 2023-09-07 13:32:00 +08:00
test Added option to share redis connections across caches 2023-09-07 13:32:00 +08:00
.eslintrc.js
index.js
package.json Updated linting and testing packages 2023-09-01 15:51:17 +02:00
README.md

Adapter Cache Redis

Redis based cache adapter with support of Redis cluster

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests