Mysql will never be as fast as PHP variables, even if using a memory storage engine.
You still have the overhead of the mysql client/server connection protocol, etc...
Ancak, fast enough, örneğin bazı veri kümeleri için SQL kullanarak bir avantajı var, birçok durumda, için olmalıdır.
Akılda tutulması, sadece uygun olduğunda kullanın.
Also, you should look at memcached and (php extension)
It doesn't support SQL, but it's a simple memory caching system with great features, and
all your processes/servers can share the same cache