Hello!
On Fri, Mar 13, 2015 at 1:10 AM, aifeiasdf wrote:
> hi agentzh, I found that ngx.shared can only support string type and this
> feature make it hard to finish some simple work. Is there any 3rd-party
> module can make ngx.shared powerfull?
>
To quote the official documentation:
https://github.com/openresty/lua-nginx-module#ngxshareddictset
"The value argument inserted can be Lua booleans, numbers, strings, or nil."
So it's not just Lua strings ;)
For complicated Lua data structures, like tables, you can do
serialization and de-serialization yourself, but it's doomed to be
more expensive.
Regards,
-agentzh