https://github.com/contentacms/contentajsredis
Redis wrapper for ContentaJS, a drop in replacement for the LRU in-memory cache.
https://github.com/contentacms/contentajsredis
Last synced: 9 months ago
JSON representation
Redis wrapper for ContentaJS, a drop in replacement for the LRU in-memory cache.
- Host: GitHub
- URL: https://github.com/contentacms/contentajsredis
- Owner: contentacms
- Created: 2018-06-09T09:07:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T23:50:43.000Z (about 6 years ago)
- Last Synced: 2025-10-04T02:28:23.563Z (9 months ago)
- Language: JavaScript
- Size: 1.46 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ContentaJS - Redis
This project is part of the
ContentaJS project. You
need to install it inside of a ContentaJS project.
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:
```yaml
# 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.