is it possible to connect to memcached and check in access phase?
Manlio Perillo
manlio_perillo at libero.it
Mon Feb 23 14:35:54 MSK 2009
Marcus Clyne ha scritto:
>
>> However, if the memcached serve is on localhost, and since the data
>> you exchange is small, it should be safe to use socket in blocking mode.
>>
> A few months ago I wrote a basic Nginx module using both the newer
> libmemcached library and the older libmemcache by Sean Chittenden to get
> a value from memcached and set an Nginx variable. Both were blocking
> (i.e. didn't use an asynchronous approach), and I only tested them on a
> local installation of memcached. The quicker of the two was the older
> libmemcache library (by quite a lot, actually), probably because the
> code itself is simpler.
>
So, I suspect that a self written client should be even more quicker.
And you can also use UDP.
Did you use a persistent TCP connection?
> [...]
Manlio Perillo
More information about the nginx
mailing list