Does anyone how to use redis with Genserver?

I understand. Thanks

3 Likes

Seems like OP did figure out, after all. Sharing his solution I came across, for the record: Cache the data using Redis in Elixir/Phoenix - DEV Community

6 Likes

Not sure if this has changed recently, but if the goal is simply to add Redix to a supervision tree, it seems to have native support for that now without any need to implement your own server: Redix — Redix v1.1.2

So if you use MyApp.Redis as the name, you can call Redix.command(MyApp.Redis, ["PING"])