Add in redis updated data from sequelize query

8 views
Skip to first unread message

Alisia Reveli

unread,
Jun 16, 2021, 8:27:14 AM6/16/21
to Sequelize

I am using sequelize with node js and mysql, I have a table named Setting and I want to update a field from settings named company_name.

 let updatedName = await Settings.update({ company_name: req.body }, { where: {id: req.token.company_id}, }); 

Till here everything is fine, but i found out that this update is not reflected in redis. I cannot find the updated data in redis. Is there a way to update my query , so the change can be reflect in redis too ?

Reply all
Reply to author
Forward
0 new messages