Memcache module implementation with multi-get support?

agentzh agentzh at gmail.com
Sat Apr 7 00:42:07 UTC 2012


On Sat, Apr 7, 2012 at 6:00 AM, Matthieu Tourne
<matthieu.tourne at gmail.com> wrote:
> On Fri, Apr 6, 2012 at 2:40 PM, Brian Akins <brian at akins.org> wrote:
>> On Apr 6, 2012, at 4:27 PM, Ashish S Dev wrote:
>> >
>> > Is there a memcache module implementation with multi-get support?
>>
>> Probably be pretty simple to add it to
>> https://github.com/agentzh/lua-resty-memcached
>>
>
> I think it already supports it if you pass an array of keys to the
> memc:get() function
>

Yes, it does.

Below is a test case for this feature:

https://github.com/agentzh/lua-resty-memcached/blob/master/t/sanity.t#L1413

The lua-resty-memcached library is not an nginx module itself, but
rather a (nonblocking) Lua library that is intended to be used with
the ngx_lua module :)

Best regards,
-agentzh



More information about the nginx mailing list