Relative Content

Tag Archive for javascriptjsontypescriptredisnestjs

How to store instance of a class in Redis?

In NestJS framework, I have an array of object, each object contains an instance of my car class, this class have a lot of public and private property and some method. Since my project doesn’t have any database except Redis and sometimes restart unexpectedly; I want to store this array of object into Redis DB every one minute.

Typescript : how to store instance of a class in redis?

in nestjs framework, I have an array of object, each object contains an instance of my car class, this class have a lot of public and private property and some method. since my project doesn’t have any database except redis and sometimes restart unexpectedly; I want to store this array of object into redis DB every one minute.