#How to pass a GenServer PID to multiple contexts in Pheonix?

1 messages · Page 1 of 1 (latest)

dense siren
#

Hi all.
I am trying to create an on memory cache using gen servers. I cannot figure out however, how to pass the pid of the gen server to specific contexts. The GenServer should start up when the application starts.
Thanks in advance!

little fiber
#

Can you just give the process a well known name and just use that?