OK, I'd phone memcached module for Nginx but this really is clearly not for that faintheart.

Does anybody learn about a method to load a library in memory after which use its functions - from the Web server like Nginx, Lighhtpd or Apache?

Illustration of such libraries abound like JSON parsers, Database client libraries, etc.

Difficult to find anything about doing the work but individuals men have managed to get pretty easy:

http://dearetc.com/

It takes merely one type of code to import a library and all sorts of its functions.

Hope it can help others...