Is it possible to use redis as a database in nestJS? (Not as a cache service)

Viewed 624

Before question

  • I do understand using redis as a DB is a bad idea with the risk of losing in-memory data.
  • Lagacy Data made with old javascript server are piled up in redis DB, and which left me (and nestJS) no choice but redis.

Is it possible to use redis as a database in NestJs? Or what's recommended way to do it in NestJS, it it's not recommended what could be the reason?

If possible, it's most ideal to hide redis's implementation (similar to typeorm mysql or typeorm mongodb)

1 Answers
Related