skip to Main Content

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