Welcome! Log In Create A New Profile

Advanced

How to update/store entries into memcache from C++ FastCGI process?

June 17, 2010 12:32AM
Hello,

This is my first post here, so first and foremost, I would like to say I have fallen in love with nginx. :-) This is the most beautiful server I had ever seen before. Thank you so much for providing such a wonderful C server. :-) I totally love it. :-)

Despite searching the internet (mainly github/stackoverflow/google ) for it, I did not find any clue(s) as to how will I store the contents in the memcache.

What I wanted to try out is something below:
At the start the FastCGI process (written using FastCGI++ using C++ course), I want to populate the memcache [either NginxHttpMemcachedModule or NginxHttpMemcModule] with, say, 1000 thumbnails.

Please, can anyone here just point to me how can I do that? I know it must be really easy but I have spent quite a lot of time trying to do this.

PS: I did find example/article regarding this on Internet but that code is in PHP.

Link: http://lserinol.blogspot.com/2009/03/speeding-up-your-nginx-server-with.html

I am mainly looking for equivalents of following two PHP calls in C/C++ on that link (please search on that page) :
1) memcache_connect
2) memcache_add

Thank you very much in advance and please pardon if this sounds like a basic question.

Kind regards,
~Viren
Subject Author Posted

How to update/store entries into memcache from C++ FastCGI process?

drvirens June 17, 2010 12:32AM

Re: How to update/store entries into memcache from C++ FastCGI process?

Sergey A. Osokin June 17, 2010 02:12AM

Re: How to update/store entries into memcache from C++ FastCGI process?

drvirens June 17, 2010 03:33PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready