skip to Main Content

Sidekiq + redis + docker-compose + rails

I configured my project to work with the listed technologies, but when requesting the route http://localhost: 3000/sidekiq, it gives the error Error connecting to Redis on 127.0.0.1:6379 (Errno :: ECONNREFUSED). In the terminal where docker is running, you can see…

VIEW QUESTION

Mongoose redis caching

https://medium.com/@haimrait/how-to-add-a-redis-cache-layer-to-mongoose-in-node-js-a9729181ad69 In this guide. So I mostly do queries like { id: <guild id> } so whenever new document is created. const book = new Book({ title, content, author }); try { await book.save(); clearKey(Book.collection.collectionName); res.send(book); } catch (err) {…

VIEW QUESTION
Back To Top
Search