[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua table in a shared memory segment
- From: Matthieu Tourne <matthieu.tourne@...>
- Date: Thu, 31 May 2012 10:27:51 -0700
On Thu, May 31, 2012 at 10:22 AM, Pierre Chapuis <email@example.com> wrote:
> On 2012-05-31 19:19, Matthieu Tourne wrote:
>> I'm using a Lua project (Nginx Lua module), which exposes a Nginx
>> rbtree in a shared memory segment.
>> But a memcache k/v interface is too limiting when writing complex data
>> Is there a way I could create a Lua table in shared memory, or expose
>> a table like interface so I could store Lua object in my shm segment ?
> Did you look at http://wiki.nginx.org/HttpLuaModule#ngx.shared.DICT ?
This is the same documentation for Nginx Lua that I sent a link to
(from the Nginx wiki instead of github).
I'm actually looking for a way to extend the functionality of
ngx.shared.DICT into a full fledged Lua table, not just a key/value