How to build a supervisor for this one?

I’m working on an API that has a Postgres database and it has one table. I have created a controller that will insert the data in that table. I want to create a supervisor that tracks how many data is inserted into that table and can pick a row and cache each row in redis keys. After doing a little research I got to this

https://hexdocs.pm/redix/Redix.html#content

Please tell me how to approach this.

2 Likes

Interesting I also want to know this. Does anyone know this ?