Improved Caching with Redis

In this lesson, we'll install and configure the AdonisJS Redis package. We'll then swap out our singleton in-memory cache service with a Redis cache implementation.

Published
Feb 04
Duration
10m 44s

Developer, dog lover, and burrito eater. Currently teaching AdonisJS, a fully featured NodeJS framework, and running Adocasts where I post new lessons weekly. Professionally, I work with JavaScript, .Net C#, and SQL Server.

Adocasts

Burlington, KY

Join The Discussion! (2 Comments)

Please sign in or sign up for free to join in on the dicussion.

  1. Commented 1 month ago

    Incase you have issues with writing to redis, head over to redis-cli on the terminal and run this

    `config set stop-writes-on-bgsave-error no`

    Restart your redis server and all will be good.

    1

    Please sign in or sign up for free to reply

    1. Commented 1 month ago

      Thanks for sharing, Phillip!!

      1

      Please sign in or sign up for free to reply

Playing Next Lesson In
seconds