Skip to content
Redis wrapper for ContentaJS, a drop in replacement for the LRU in-memory cache.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.emdaer
flow-typed/npm
src
.babelrc.js
.editorconfig
.eslintignore
.eslintrc.js
.flowconfig
.gitignore
.npmignore
.nvmrc
.prettierignore
.travis.yml
AUTHORS
README.md
commitlint.config.js
jest.config.js
lint-staged.config.js
logo.svg
package-lock.json
package.json
prettier.config.js

README.md

ContentaJS - Redis Contenta logo

This project is part of the ContentaJS project. You need to install it inside of a ContentaJS project.

Travis Coverage Documented with emdaer

Installation

In order to use Redis as your cache back-end in ContentaJS you will need to:

Install

Install this module in your ContentaJS forked project:


npm install @contentacms/redis

Add the Redis configuration

Add the Redis configuration to your configuration files in ContentaJS, and make Redis your active cache back-end. Make sure to configure Redis with your actual host, port, and any additional options you need. Modify your config file with:

# NOTE: Append the 'redis' section under 'plugins'
applicationCache:
  activePlugin: redis # <--- ACTIVATE REDIS
  plugins:
    lru: … # You can keep existing configuration to switch back if needed.
    foo: 
    bar: 
    redis: # <--- APPEND THIS SECTION
      # Additional options for node_redis
      # http://redis.js.org/#api-rediscreateclient passed verbatim.
      host: 127.0.0.1
      port: 6379
      prefix: 'contentajs::'

Contributors

Contributors
Mateu Aguiló Bosch

License

@contentacms/redis is MIT licensed.

You can’t perform that action at this time.