Hi,
As a learning exercise, I want to implement a very simple cache in Redis in my project. I found
this article which uses poolboy and eredis, and implements a pool of workers with a Supervisor module. Is this sufficient? I assume it'll work, but looking at the phoenix_pubsub_redis adapter, I see that two servers have been implemented.
So, should I write my own GenServer to handle interactions with Redis, or is that unnecessary and is adding the allowed queries (SET/GET/HSET/HGET/HMSET) to the Supervisor all I need to do?
Thanks in advance,
Thomas