I'm rewriting my old project to Phalcon, and in that project I have online counter which use 1 MySQL table to store all IP's for past 5 min. and on every request it updates timeout for current IP and delete all rows that already > 5 min. and after that it shows actual users online.
It's absolutely bad solution, because it can produce "SQL request flood" to DB table when every user updates the table at every request. I have one thought, things like this should be in memory. So I would like to ask does Phalcon can give me access to some storage in memory?
Or maybe somebody knows a superbest solution for this?