GithubHelp home page GithubHelp logo

bensoer / ghost-cache-adapter-redis Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 80 KB

Redis Caching adapter for Ghost

License: MIT License

TypeScript 57.94% Dockerfile 42.06%
adapters blog ghost redis typescript ghost-blog

ghost-cache-adapter-redis's Introduction

ghost-cache-adapter-redis

A redis caching adapter for Ghost

WARNING: Still under heavy development. Wait until release is made before using

Prerequisites:

  • Nodejs v16
  • Ghost v4+

Installation

  1. Clone the repository
  2. cd into the project root and run the following commands:
    npm install
    npm run build
  3. Copy contents in the dist folder to content/adapters/cache/ghost-cache-adapter-redis

Configuration

Within your config.production.json or config.development.json file, configure the following:

"adapters": {
  "cache": {
    "imageSizes": {
      "adapter": "ghost-cache-adapter-redis",
    },
    "ghost-cache-adapter-redis": {
      "host": "<host>"
    }
  }
}

Above describes the minimum required settings. All setting options available are as follows:

Setting Optional Default Description
username YES undefined Set username for authentication with Redis instance. Undefined will not authenticate with a username
password YES undefined Set password for authentication with Redis instance. Undefined will cause the client to not authenticate at all with the redis server
port YES 6379 Set port to connect to redis instance on
ttl YES 3600 Default TTL value for caching
dbNumber YES 1 Default Redis DB to be used within the Redis instance
host NO N/A Redis host endpoint to connect to

Note: For username a password value must be provided. If there is no password value, username will be ignored. If password is undefined, the client will connect to the redis instance without authenticating

All settings can be set also by using environment variables via Ghost's configuration environment variable syntax. See https://ghost.org/docs/config/ for details

Developer Resources:

ghost-cache-adapter-redis's People

Contributors

bensoer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.