Redis as cache for postgreSql nested data
I'm working on web app using nestJs/postgres/redis. What is the best way (best data structure) to cache following postgres table (hierarchy) to Redis ? space: name another attribute users (one2many) folders: spaceId name users (one2many) files: folderId spaceId name users…