fiar
fiar copied to clipboard
Version #9: With Cache
Add a cache gen_server, that keeps a game alive from a limited period of time (i.e. when the match is inactive for a certain number of minutes, the server is stopped). The server should be transparently started when somebody wants to play that match and subsequent requests for that match should not go to the db, but instead hit the server, until the inactivity period is expired.